fix: allow all traffic if acls field is omited from the policy

This commit is contained in:
afranco
2025-08-16 12:15:56 +01:00
committed by nblock
parent 7b8b796a71
commit 43f90d205e
2 changed files with 3 additions and 3 deletions

View File

@@ -40,8 +40,8 @@ func TestPolicyManager(t *testing.T) {
name: "empty-policy",
pol: "{}",
nodes: types.Nodes{},
wantFilter: nil,
wantMatchers: []matcher.Match{},
wantFilter: tailcfg.FilterAllowAll,
wantMatchers: matcher.MatchesFromFilterRules(tailcfg.FilterAllowAll),
},
}