From 29ff6888fe50e5fd4524d10978bd0ed5049ff905 Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 3 May 2007 17:01:36 +0000 Subject: [PATCH] Improve editing of LIMIT/BURST -- Take 2 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6217 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 2aae847fa..dd70c6f94 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -914,7 +914,7 @@ sub do_ratelimit( $$ ) { fatal_error "Rate Limiting not available with $action" if $norate{$action}; - if ( $rate =~ /^(\d+(\/(sec|hour|day)))?:(\d+)$/ ) { + if ( $rate =~ /^(\d+(\/(sec|hour|day))?):(\d+)$/ ) { "-m limit --limit $1 --limit-burst $4 "; } elsif ( $rate =~ /^(\d+)(\/(sec|hour|day))?$/ ) { "-m limit --limit $rate ";