mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 11:20:53 +01:00
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:
parent
83d7df107d
commit
29ff6888fe
@ -914,7 +914,7 @@ sub do_ratelimit( $$ ) {
|
|||||||
|
|
||||||
fatal_error "Rate Limiting not available with $action" if $norate{$action};
|
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 ";
|
"-m limit --limit $1 --limit-burst $4 ";
|
||||||
} elsif ( $rate =~ /^(\d+)(\/(sec|hour|day))?$/ ) {
|
} elsif ( $rate =~ /^(\d+)(\/(sec|hour|day))?$/ ) {
|
||||||
"-m limit --limit $rate ";
|
"-m limit --limit $rate ";
|
||||||
|
Loading…
Reference in New Issue
Block a user