Don't use -g when the target might not be terminating

Signed-off-by: Tom Eastep <teastep@shorewall.net>

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9834 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-09 20:18:11 +00:00
parent ae169f00a7
commit f20013898e

View File

@ -2340,6 +2340,10 @@ sub expand_rule( $$$$$$$$$$$ )
push @ends, $end;
}
#
# Trim disposition
#
$disposition =~ s/\s+.*//;
#
# Handle Log Level
#
my $logtag;
@ -2709,7 +2713,7 @@ sub expand_rule( $$$$$$$$$$$ )
if ( $disposition ne 'LOG' ) {
my $logchainref = new_chain $chainref->{table}, newlogchain;
add_jump( $chainref, $logchainref, 1, $rule );
add_jump( $chainref, $logchainref, $builtin_target{$disposition}, $rule );
log_rule_limit(
$loglevel ,