mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-22 13:24:57 +09:00
Do not explicitly set the protocols when ommited in ACL
This commit is contained in:
1 parent
1015bc3e02
commit
6c2d6fa302
1 file changed
+1
-6
@@ -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":
|
||||
|
||||
Reference in new issue
Block a user