correct confusing comment in wireguard-nat-nftables script
This commit is contained in:
		
					parent
					
						
							
								ba18a69829
							
						
					
				
			
			
				commit
				
					
						02a862be61
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -69,7 +69,7 @@ def main():
 | 
			
		|||
                            print("Changed dnat address from {} to {} for UDP port {}".format(ip, port_ip_mapping[port], port))
 | 
			
		||||
                    port_ip_mapping.pop(port)
 | 
			
		||||
 | 
			
		||||
            # loop through all remaining ports and add needed dnat rules
 | 
			
		||||
            # loop through all ports and add needed dnat rules
 | 
			
		||||
            for port in port_ip_mapping:
 | 
			
		||||
                rc, output, error = nft.cmd("add rule wireguard-nat prerouting iif {} udp dport {} dnat to {}".format(interface, port, port_ip_mapping[port]))
 | 
			
		||||
                if error:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue