Don't create blackout unnecessarily

This commit is contained in:
Tom Eastep 2010-09-13 18:15:50 -07:00
parent 82bccf16b5
commit 0f913fca2f

View File

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