diff --git a/cmd/syncthing/config.go b/cmd/syncthing/config.go index ab5cae28..c54dd1fe 100644 --- a/cmd/syncthing/config.go +++ b/cmd/syncthing/config.go @@ -46,7 +46,7 @@ type NodeConfiguration struct { } type OptionsConfiguration struct { - ListenAddress []string `xml:"listenAddress" default:":22000"` + ListenAddress []string `xml:"listenAddress" default:"0.0.0.0:22000"` GlobalAnnServer string `xml:"globalAnnounceServer" default:"announce.syncthing.net:22025"` GlobalAnnEnabled bool `xml:"globalAnnounceEnabled" default:"true"` LocalAnnEnabled bool `xml:"localAnnounceEnabled" default:"true"` diff --git a/cmd/syncthing/config_test.go b/cmd/syncthing/config_test.go index 0e96b022..91a954e7 100644 --- a/cmd/syncthing/config_test.go +++ b/cmd/syncthing/config_test.go @@ -10,7 +10,7 @@ import ( func TestDefaultValues(t *testing.T) { expected := OptionsConfiguration{ - ListenAddress: []string{":22000"}, + ListenAddress: []string{"0.0.0.0:22000"}, GlobalAnnServer: "announce.syncthing.net:22025", GlobalAnnEnabled: true, LocalAnnEnabled: true,