diff --git a/npm/pkg/dataplane/policies/policy_windows.go b/npm/pkg/dataplane/policies/policy_windows.go index 1e469d1d00..0774d270f3 100644 --- a/npm/pkg/dataplane/policies/policy_windows.go +++ b/npm/pkg/dataplane/policies/policy_windows.go @@ -119,7 +119,7 @@ func (acl *ACLPolicy) checkIPSets() bool { return false } - if set.MatchType != "src" && set.MatchType != "dst" { + if !set.hasKnownMatchType() { return false } } @@ -128,7 +128,7 @@ func (acl *ACLPolicy) checkIPSets() bool { return false } - if set.MatchType != "src" && set.MatchType != "dst" { + if !set.hasKnownMatchType() { return false } }