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