Default listen host should be 0.0.0.0 (again) (ref #216)

This commit is contained in:
Jakob Borg 2014-05-26 15:01:04 +02:00
parent 8e0520887a
commit 6b9dce36bf

View File

@ -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)