forked from extern/shorewall_code
Fix rate limiting
- Avoid specifying a timeout when the match is '-m limit' Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
474604b1fe
commit
0685d0edfd
@ -5444,8 +5444,10 @@ sub do_ratelimit( $$ ) {
|
||||
$limit .= " --hashlimit-htable-size $htsize --hashlimit-htable-max $max";
|
||||
}
|
||||
|
||||
$limit .= " --hashlimit-mode $mode" if $mode;
|
||||
$units = $10;
|
||||
if ( $mode ) {
|
||||
$limit .= " --hashlimit-mode $mode";
|
||||
$units = $10;
|
||||
}
|
||||
} else {
|
||||
fatal_error "Invalid rate ($rate)";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user