Fix logic error in iptables.append
Merge pull request #9445 from techhat/iptables

Fix logic error in iptables.append