mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-14 17:48:17 +01:00
Back off on not jumping to the blacklist chain when there are no blacklist entries.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fae29bcf6f
commit
9a88156769
@ -275,13 +275,9 @@ sub setup_blacklist() {
|
||||
progress_message " \"$currentline\" added to blacklist";
|
||||
}
|
||||
|
||||
if ( $first_entry && @$hosts ) {
|
||||
warning_message q(There are interfaces or hosts with the 'blacklist' option but the 'blacklist' file is empty);
|
||||
last BLACKLIST;
|
||||
}
|
||||
warning_message q(There are interfaces or hosts with the 'blacklist' option but the 'blacklist' file is empty) if $first_entry && @$hosts;
|
||||
} elsif ( @$hosts ) {
|
||||
warning_message q(There are interfaces or hosts with the 'blacklist' option, but the 'blacklist' file is either missing or has zero size);
|
||||
last BLACKLIST;
|
||||
}
|
||||
|
||||
my $state = $config{BLACKLISTNEWONLY} ? $globals{UNTRACKED} ? '-m state --state NEW,INVALID,UNTRACKED ' : '-m state --state NEW,INVALID ' : '';
|
||||
|
Loading…
Reference in New Issue
Block a user