all: Add untrusted folders behind feature flag (ref #62) (#7055)

This commit is contained in:
Simon Frei
2020-11-09 15:33:32 +01:00
committed by GitHub
parent 4db5ea5893
commit 31559e908b
59 changed files with 6952 additions and 1111 deletions
+2
View File
@@ -77,6 +77,7 @@ func TestDefaultValues(t *testing.T) {
StunKeepaliveMinS: 20,
RawStunServers: []string{"default"},
AnnounceLANAddresses: true,
FeatureFlags: []string{},
}
cfg := New(device1)
@@ -225,6 +226,7 @@ func TestOverriddenValues(t *testing.T) {
StunKeepaliveStartS: 9000,
StunKeepaliveMinS: 900,
RawStunServers: []string{"foo"},
FeatureFlags: []string{"feature"},
}
os.Unsetenv("STNOUPGRADE")