Merge pull request #216 from jedie/master

Change default ListenAddress to "0.0.0.0:22000"
This commit is contained in:
Jakob Borg 2014-05-14 17:49:41 +02:00
commit 81cd84add2
2 changed files with 2 additions and 2 deletions

View File

@ -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"`

View File

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