mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 00:23:28 +01:00
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:
parent
8ea3e53154
commit
29030e1dc1
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user