Skip to content

Commit 48168b1

Browse files
committed
added error for named port
1 parent af8d266 commit 48168b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

npm/pkg/controlplane/translation/translatePolicy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ func directPeerAndPortRule(npmNetPol *policies.NPMNetworkPolicy, direction polic
396396
}
397397

398398
// Handle ports
399+
if portKind == namedPortType {
400+
return ErrUnsupportedNamedPort
401+
}
399402
if portKind == numericPortType {
400403
portInfo, protocol := numericPortRule(&ports[i])
401404
acl.DstPorts = portInfo

0 commit comments

Comments
 (0)