fix:修复调度器ipv6端口问题

This commit is contained in:
Joftal committed 2026-06-17 17:47:11 +08:00
1 parent 2739131308
commit 501b4c2a00
1 file changed
+1 -1
+1 -1
View File
@@ -420,7 +420,7 @@ func startScheduler() {
if host == "" || host == "0.0.0.0" || host == "::" {
host = "localhost"
}
apiURL := "http://" + host + ":" + port
apiURL := "http://" + net.JoinHostPort(host, port)
dbPath := filepath.Join(cfg.AppDataPath, "db", "scheduler.db")
// Clean up stale port file from previous run