From 6b9dce36bff4740d723bd92b446b617eb3a73468 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 26 May 2014 15:01:04 +0200 Subject: [PATCH] Default listen host should be 0.0.0.0 (again) (ref #216) --- cmd/syncthing/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 83669f45a..bef650ed2 100644 --- a/cmd/syncthing/main.go +++ b/cmd/syncthing/main.go @@ -203,9 +203,9 @@ func main() { l.FatalErr(err) cfg.GUI.Address = fmt.Sprintf("127.0.0.1:%d", port) - port, err = getFreePort("", 22000) + port, err = getFreePort("0.0.0.0", 22000) l.FatalErr(err) - cfg.Options.ListenAddress = []string{fmt.Sprintf(":%d", port)} + cfg.Options.ListenAddress = []string{fmt.Sprintf("0.0.0.0:%d", port)} saveConfig() l.Infof("Edit %s to taste or use the GUI\n", cfgFile)