p2pblock: fix flush rules if all p2p's are allowed.

This commit is contained in:
Arne Fitzenreiter
2014-10-05 15:12:44 +02:00
parent 2a5b19c56f
commit 24d36c80a6

View File

@@ -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");
}
}