mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-17 00:27:36 +00:00
Compare commits
1 Commits
v0.22.0-al
...
v0.17.1
Author | SHA1 | Date | |
---|---|---|---|
![]() |
422d124c7e |
7
acls.go
7
acls.go
@@ -386,12 +386,7 @@ func generateACLPolicyDest(
|
|||||||
func parseProtocol(protocol string) ([]int, bool, error) {
|
func parseProtocol(protocol string) ([]int, bool, error) {
|
||||||
switch protocol {
|
switch protocol {
|
||||||
case "":
|
case "":
|
||||||
return []int{
|
return nil, false, nil
|
||||||
protocolICMP,
|
|
||||||
protocolIPv6ICMP,
|
|
||||||
protocolTCP,
|
|
||||||
protocolUDP,
|
|
||||||
}, false, nil
|
|
||||||
case "igmp":
|
case "igmp":
|
||||||
return []int{protocolIGMP}, true, nil
|
return []int{protocolIGMP}, true, nil
|
||||||
case "ipv4", "ip-in-ip":
|
case "ipv4", "ip-in-ip":
|
||||||
|
Reference in New Issue
Block a user