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 99f8f84024
commit 8dd42c9e19

View File

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