mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-11-04 01:51:04 +01:00 
			
		
		
		
	Do not explicitly set the protocols when ommited in ACL
This commit is contained in:
		
							parent
							
								
									1015bc3e02
								
							
						
					
					
						commit
						6c2d6fa302
					
				
							
								
								
									
										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":
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user