If the config file holds a line with "iptables_port=xxx" in it anywhere, then the port forwarding is activated in iptables, even when the line is commented out.
Changing the regex to "(?<=^iptables_port=)\s*[1-9][0-9]+" solves this problem, and also allows blanks between the = and the port number.
If the config file holds a line with "iptables_port=xxx" in it anywhere, then the port forwarding is activated in iptables, even when the line is commented out.
Changing the regex to "(?<=^iptables_port=)\s*[1-9][0-9]+" solves this problem, and also allows blanks between the = and the port number.
See patch in a-schild fork