]> git.ipfire.org Git - people/trikolon/ipfire-2.x.git/blobdiff - config/firewall/rules.pl
p2pblock: fix flush rules if all p2p's are allowed.
[people/trikolon/ipfire-2.x.git] / config / firewall / rules.pl
index 20f97bef0e8d32a8a827cb6b7da474db8c7b7600..75a9357f64bc6047a47f81ad56f9c9e46301489f 100755 (executable)
@@ -564,8 +564,8 @@ sub p2pblock {
        }
        close(FILE);
 
+       run("$IPTABLES -F P2PBLOCK");
        if (@protocols) {
-               run("$IPTABLES -F P2PBLOCK");
                run("$IPTABLES -A P2PBLOCK -m ipp2p @protocols -j DROP");
        }
 }