forked from extern/shorewall_code
A more compact version of 6318
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6319 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
28b807a03c
commit
730077c2fc
@ -593,8 +593,8 @@ sub process_actions3 () {
|
||||
|
||||
my $set = $tag[0];
|
||||
|
||||
for my $index ( 1..2 ) {
|
||||
fatal_error "Max connections and interval in Limit rules must be numeric" unless $tag[$index] =~ /^\d+$/
|
||||
for ( @tag[1,2] ) {
|
||||
fatal_error "Max connections and interval in Limit rules must be numeric" unless /^\d+$/
|
||||
}
|
||||
|
||||
my $count = $tag[1] + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user