From 0de4208fef04b3e65a9227f21c726a1dcb3c62d0 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 29 Jan 2011 08:45:20 -0800 Subject: [PATCH] Fix silly bug in expand_rule() --- 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 e44b1283d..f6e2901ca 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3509,7 +3509,7 @@ sub expand_rule( $$$$$$$$$$;$ ) $iiface = $1; $inets = $2; } elsif ( $source =~ /:/ ) { - if ( $source =~ /^<(.+)>$/ || $source =~ /^<\[.+\]>$/ ) { + if ( $source =~ /^<(.+)>$/ || $source =~ /^\[(.+)\]$/ ) { $inets = $1; } else { $inets = $source;