[优化] 修复重启 frpc 挂掉问题

This commit is contained in:
ryan
2026-06-01 22:41:46 +08:00
parent fd8148c0db
commit a850b0a188
3 changed files with 21 additions and 18 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func NewManager(frpsPath string, dataDir string, agentToken string) *Manager {
frpsPath: frpsPath,
dataDir: dataDir,
configPath: filepath.Join(dataDir, "frps.toml"),
status: "unhealthy",
status: "unknown", // 启动阶段尚未获取配置,状态未知;避免首次 heartbeat 误报 frps_unhealthy
agentToken: agentToken,
}
}