mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Handle COUNT:<level> correctly
This commit is contained in:
parent
8400a2ab31
commit
b7a9a48508
@ -3843,14 +3843,12 @@ sub expand_rule( $$$$$$$$$$;$ )
|
||||
my $matches = join( '', $rule, $source_match, $dest_match, $onet );
|
||||
|
||||
if ( $loglevel ne '' ) {
|
||||
if ( $disposition ne 'LOG' ) {
|
||||
unless ( $disposition eq 'LOG' || $disposition eq 'COUNT' ) {
|
||||
unless ( $logname || $target =~ /^RETURN\b/ ) {
|
||||
#
|
||||
# Find/Create a chain that both logs and applies the target action
|
||||
# and jump to the log chain if all of the rule's conditions are met
|
||||
#
|
||||
assert( $target );
|
||||
|
||||
add_jump( $chainref,
|
||||
logchain( $chainref, $loglevel, $logtag, $exceptionrule , $disposition, $target ),
|
||||
$builtin_target{$disposition},
|
||||
|
Loading…
Reference in New Issue
Block a user