mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
p2pblock: fix flush rules if all p2p's are allowed.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user