From 8f14d11d661a313ab0a93a83680445c7fe2163c5 Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Wed, 14 May 2014 17:43:23 +0200 Subject: [PATCH 1/2] change default ListenAddress to "0.0.0.0:22000" --- cmd/syncthing/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/config.go b/cmd/syncthing/config.go index 596f3f140..ae3af4d8a 100644 --- a/cmd/syncthing/config.go +++ b/cmd/syncthing/config.go @@ -45,7 +45,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"` From 8229d47da5f279cc10be8266c84f479beea170b2 Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Wed, 14 May 2014 17:43:49 +0200 Subject: [PATCH 2/2] Update config_test.go --- cmd/syncthing/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/config_test.go b/cmd/syncthing/config_test.go index 0e96b0225..91a954e75 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,