Handle two-chain case when LOG_ZONE != 'Both'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2018-02-22 11:25:19 -08:00
parent 4a714b3ab9
commit 88547f5140
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1232,7 +1232,7 @@ sub finish_chain_section ($$$) {
if ( $twochains ) { if ( $twochains ) {
$chain2ref = $chainref; $chain2ref = $chainref;
} else { } else {
$chain2ref = new_chain( 'filter', "${char}$chainref->{name}" ); $chain2ref = new_chain( 'filter', "${char}$chainref->{name}" , "${char}$chainref->{logname}" );
} }
log_rule_limit( $level, log_rule_limit( $level,