增加代理接口

This commit is contained in:
2025-10-30 11:13:47 +08:00
parent 2f4097b697
commit 31d1b3d27e
18 changed files with 274 additions and 104 deletions

View File

@@ -77,9 +77,9 @@ func (s *sSystem) RestartSelf() error {
return nil // 理论上不会执行到这里
}
// RenameRunningFile 重命名正在运行的程序文件(如 p2p.exe → p2p.exe~
// RenameRunningFile 重命名正在运行的程序文件(如 message.exe → message.exe~
func (s *sSystem) RenameRunningFile(exePath string) (string, error) {
// 目标备份文件名(p2p.exe → p2p.exe~
// 目标备份文件名(message.exe → message.exe~
backupPath := exePath + "~"
// 先删除已存在的备份文件(若有)