log_rule_limit now adds a trailing ' ' to non-empty $predicates

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6978 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-28 01:44:52 +00:00
parent 8ea3e53154
commit 29030e1dc1

View File

@ -1318,6 +1318,8 @@ sub log_rule_limit( $$$$$$$$ ) {
$prefix = "-j LOG $globals{LOGPARMS}--log-level $level --log-prefix \"$prefix\" ";
}
}
$predicates .= ' ' if $predicates && substr( $predicates, -1, 1 ) ne ' ';
if ( $command eq 'add' ) {
add_rule ( $chainref, $predicates . $prefix );