diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 45cc81390..3e51d3750 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -468,7 +468,7 @@ nextRepo: proto = "https" } - l.Infof("Starting web GUI on %s://%s:%d/", proto, hostShow, addr.Port) + l.Infof("Starting web GUI on %s://%s/", proto, net.JoinHostPort(hostShow, strconv.Itoa(addr.Port))) err := startGUI(guiCfg, os.Getenv("STGUIASSETS"), m) if err != nil { l.Fatalln("Cannot start GUI:", err)