mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-28 10:51:44 +01:00 
			
		
		
		
	Do not explicitly set the protocols when ommited in ACL
This commit is contained in:
		
							parent
							
								
									0db16c7bbe
								
							
						
					
					
						commit
						422d124c7e
					
				
							
								
								
									
										7
									
								
								acls.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								acls.go
									
									
									
									
									
								
							| @ -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": | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user