Skip to content

Commit

Permalink
Do not explicitly set the protocols when ommited in ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont committed Dec 5, 2022
1 parent 1015bc3 commit 6c2d6fa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,7 @@ func generateACLPolicyDest(
func parseProtocol(protocol string) ([]int, bool, error) {
switch protocol {
case "":
return []int{
protocolICMP,
protocolIPv6ICMP,
protocolTCP,
protocolUDP,
}, false, nil
return nil, false, nil
case "igmp":
return []int{protocolIGMP}, true, nil
case "ipv4", "ip-in-ip":
Expand Down

0 comments on commit 6c2d6fa

Please sign in to comment.