From 637cfdaa14a68f201784708630a82ed3ea0f06ad Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 29 Jul 2010 17:14:36 -0700 Subject: [PATCH] Handle case where old hashlimit match is no longer supported --- Shorewall/Perl/Shorewall/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index dda49858e..7fb448a84 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2864,7 +2864,7 @@ sub get_configuration( $ ) { fatal_error "Invalid rate ($1)" unless $2; fatal_error "Invalid burst value ($5)" unless $5; - $limit .= "--hashlimit $1 --hashlimit-burst $5 --hashlimit-name lograte --hashlimit-mode "; + $limit .= "--$match $1 --hashlimit-burst $5 --hashlimit-name lograte --hashlimit-mode "; $units = $4; } elsif ( $rate =~ /^[sd]:((\d+)(\/(sec|min|hour|day))?)$/ ) { fatal_error "Invalid rate ($1)" unless $2;