From a8daff00083acf1a958ad195d1f1178b387b2610 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 8 Jul 2011 15:55:58 -0700 Subject: [PATCH] Correct handling of :+ in Shorewall6. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 06e8d552b..c446b9aab 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -3924,7 +3924,7 @@ sub expand_rule( $$$$$$$$$$;$ ) } else { $iiface = $source; } - } elsif ( $source =~ /^(.+?):<(.+)>\s*$/ || $source =~ /^(.+?):\[(.+)\]\s*$/ ) { + } elsif ( $source =~ /^(.+?):<(.+)>\s*$/ || $source =~ /^(.+?):\[(.+)\]\s*$/ || $source =~ /^(.+?):(\+.+)$/ ) { $iiface = $1; $inets = $2; } elsif ( $source =~ /:/ ) { @@ -4023,7 +4023,7 @@ sub expand_rule( $$$$$$$$$$;$ ) } else { $diface = $dest; } - } elsif ( $dest =~ /^(.+?):<(.+)>\s*$/ || $dest =~ /^(.+?):\[(.+)\]\s*$/) { + } elsif ( $dest =~ /^(.+?):<(.+)>\s*$/ || $dest =~ /^(.+?):\[(.+)\]\s*$/ || $dest =~ /^(.+?):(\+.+)$/ ) { $diface = $1; $dnets = $2; } elsif ( $dest =~ /:/ ) {