Improve editing of LIMIT/BURST -- Take 2

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6217 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-03 17:01:36 +00:00
parent 83d7df107d
commit 29ff6888fe

View File

@ -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 ";