Correct hashlimit in logging rules

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-01-13 09:49:22 -08:00
parent 8075ba719a
commit de21c59885

View File

@ -6215,7 +6215,7 @@ sub log_rule_limit( $$$$$$$$ ) {
$matches .= ' ' if $matches && substr( $matches, -1, 1 ) ne ' '; $matches .= ' ' if $matches && substr( $matches, -1, 1 ) ne ' ';
unless ( $matches =~ /-m limit / ) { unless ( $matches =~ /-m (?:limit|hashlimit) / ) {
$limit = $globals{LOGLIMIT} unless $limit && $limit ne '-'; $limit = $globals{LOGLIMIT} unless $limit && $limit ne '-';
$matches .= $limit if $limit; $matches .= $limit if $limit;
} }