mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
rules.pl: Check if the blocklist is part of the settings hash.
Otherwise there will pop up some ugly notices on the command line and the logs. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -740,7 +740,7 @@ sub ipblocklist () {
|
||||
# Loop through the array of blocklists.
|
||||
foreach my $blocklist (@blocklists) {
|
||||
# Skip disabled blocklists.
|
||||
next unless($blocklistsettings{$blocklist} eq "on");
|
||||
next unless($blocklistsettings{$blocklist}) && ($blocklistsettings{$blocklist} eq "on"));
|
||||
|
||||
# Call function to load the blocklist.
|
||||
&ipset_restore($blocklist);
|
||||
|
||||
Reference in New Issue
Block a user