mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-28 17:18:49 +01:00
Don't create blackout unnecessarily
This commit is contained in:
parent
82bccf16b5
commit
0f913fca2f
@ -225,7 +225,7 @@ sub setup_blacklist() {
|
||||
#
|
||||
if ( @$hosts || @$hosts1 ) {
|
||||
$chainref = dont_delete new_standard_chain 'blacklst' if @$hosts;
|
||||
$chainref1 = dont_delete new_standard_chain 'blackout' if @$hosts1;
|
||||
$chainref1 = new_chain( 'filter', 'blackout' ) if @$hosts1;
|
||||
|
||||
if ( defined $level && $level ne '' ) {
|
||||
my $logchainref = new_standard_chain 'blacklog';
|
||||
|
Loading…
Reference in New Issue
Block a user