mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-13 21:27:00 +02: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 ) {
|
if ( @$hosts || @$hosts1 ) {
|
||||||
$chainref = dont_delete new_standard_chain 'blacklst' if @$hosts;
|
$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 '' ) {
|
if ( defined $level && $level ne '' ) {
|
||||||
my $logchainref = new_standard_chain 'blacklog';
|
my $logchainref = new_standard_chain 'blacklog';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user