correct confusing comment in wireguard-nat-nftables script

This commit is contained in:
yuri 2023-12-19 02:54:44 +01:00
parent 2f5154dcf4
commit 05995cc92a

View file

@ -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: