Correction to logging rule fix

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-15 14:41:01 -08:00
parent eb8d96135e
commit e8807f3e7e

View File

@ -3256,7 +3256,7 @@ sub expand_rule( $$$$$$$$$$;$ )
if ( $loglevel ne '' ) {
if ( $disposition ne 'LOG' ) {
unless ( $logname || $disposition eq 'RETURN' ) {
unless ( $logname || $target =~ /-j 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