diff --git a/pkgs/wireguard-nat-nftables/src/wireguard-nat-nftables.py b/pkgs/wireguard-nat-nftables/src/wireguard-nat-nftables.py index c49b4b7..d4c914e 100644 --- a/pkgs/wireguard-nat-nftables/src/wireguard-nat-nftables.py +++ b/pkgs/wireguard-nat-nftables/src/wireguard-nat-nftables.py @@ -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: