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:
teastep 2007-05-10 16:25:20 +00:00
parent 28b807a03c
commit 730077c2fc

View File

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