From 3964f3f1523729f3f51cbd1784a268baa0832a38 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 11 Sep 2010 07:41:01 -0700 Subject: [PATCH] Correct handling of dst/src list in ipset invocation --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index ca9e7ed39..1069e98cc 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -2475,7 +2475,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; }