From 18fd54baf7276bc4c97040d38f40aa08be40d4ef Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 8 May 2007 02:19:16 +0000 Subject: [PATCH] Fix log rule generation git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6277 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 0512b4ce2..a712d525d 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1151,7 +1151,9 @@ sub log_rule_limit( $$$$$$$$ ) { my $prefix; - $limit = $globals{LOGLIMIT} unless $limit; + $limit = $globals{LOGLIMIT} unless $limit && $limit ne '-'; + + $predicates .= $limit; if ( $tag ) { if ( $config{LOGTAGONLY} ) {