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:
Stefan Schantl
2022-03-09 15:12:31 +01:00
committed by Michael Tremer
parent 870c223e0f
commit 74659290e9

View File

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