AlwaysLocalNets should not default to null

This commit is contained in:
Jakob Borg
2015-10-27 12:04:51 +01:00
parent 679f0f9363
commit d171173e90
2 changed files with 33 additions and 28 deletions

View File

@@ -62,6 +62,7 @@ func TestDefaultValues(t *testing.T) {
URInitialDelayS: 1800,
URPostInsecurely: false,
ReleasesURL: "https://api.github.com/repos/syncthing/syncthing/releases?per_page=30",
AlwaysLocalNets: []string{},
}
cfg := New(device1)
@@ -185,6 +186,7 @@ func TestOverriddenValues(t *testing.T) {
URInitialDelayS: 800,
URPostInsecurely: true,
ReleasesURL: "https://localhost/releases",
AlwaysLocalNets: []string{},
}
cfg, err := Load("testdata/overridenvalues.xml", device1)