diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index b5c59eafe..ffb5a2922 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3541,7 +3541,7 @@ sub expand_rule( $$$$$$$$$$;$ ) $iiface = $1; $inets = $2; } elsif ( $source =~ /:/ ) { - if ( $source =~ /^<(.+)>$/ || $source =~ /^<\[.+\]>$/ ) { + if ( $source =~ /^<(.+)>$/ || $source =~ /^\[(.+)\]$/ ) { $inets = $1; } else { $inets = $source;