milux / ctldap

LDAP Wrapper for ChurchTools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iptables port forwarding is activated, even when line is commented out

a-schild opened this issue · comments

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