Correct handling of dst/src list in ipset invocation

This commit is contained in:
Tom Eastep 2010-09-11 07:41:01 -07:00
parent c27861a3ec
commit 3964f3f152

View File

@ -2475,7 +2475,7 @@ sub get_set_flags( $$ ) {
$setname = $1; $setname = $1;
my $count = $2; my $count = $2;
$options .= ",$option" while --$count > 0; $options .= ",$option" while --$count > 0;
} elsif ( $setname =~ /^(.*)\[(src|dst)(,(src|dst))*\]$/ ) { } elsif ( $setname =~ /^(.*)\[((src|dst)(,(src|dst))*)\]$/ ) {
$setname = $1; $setname = $1;
$options = $2; $options = $2;
} }