summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-05-26 15:01:04 +0200
committerJakob Borg <jakob@nym.se>2014-05-26 15:01:04 +0200
commit6b9dce36bff4740d723bd92b446b617eb3a73468 (patch)
treed5314edfa56f07824cf049834feb88703e62c33e /cmd
parent8e0520887a9f7b3a354eef93c4096d0fdadc6417 (diff)
Default listen host should be 0.0.0.0 (again) (ref #216)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/syncthing/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go
index 83669f45a1..bef650ed2a 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)