diff --git a/src/tools/tools.go b/src/tools/tools.go index 2cbc0b1..854e91b 100644 --- a/src/tools/tools.go +++ b/src/tools/tools.go @@ -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