From 501b4c2a00a770e4e038e7fe3aec45ff1e7822ff Mon Sep 17 00:00:00 2001 From: Joftal <42807405+Joftal@users.noreply.github.com> Date: Wed, 17 Jun 2026 17:47:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=B0=83?= =?UTF-8?q?=E5=BA=A6=E5=99=A8ipv6=E7=AB=AF=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/tools.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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