correct confusing comment in wireguard-nat-nftables script
This commit is contained in:
parent
2f5154dcf4
commit
05995cc92a
|
@ -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…
Reference in a new issue