mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
rules.pl: Do not create HOSTILE rules if no red dev is available.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
870c223e0f
commit
74659290e9
@@ -695,6 +695,9 @@ sub drop_hostile_networks () {
|
||||
return;
|
||||
}
|
||||
|
||||
# Exit if there is no red interface.
|
||||
return unless($RED_DEV);
|
||||
|
||||
# Call function to load the network list of hostile networks.
|
||||
&ipset_restore($HOSTILE_CCODE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user