From 1f309767905483e586592236522f54c39f3346c2 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 8 Jul 2011 18:34:01 -0700 Subject: [PATCH] Correct change that tightened editing of IPv6 addresses Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/IPAddrs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/IPAddrs.pm b/Shorewall/Perl/Shorewall/IPAddrs.pm index 3baba11cc..0d84eee2c 100644 --- a/Shorewall/Perl/Shorewall/IPAddrs.pm +++ b/Shorewall/Perl/Shorewall/IPAddrs.pm @@ -536,7 +536,7 @@ sub valid_6address( $ ) { } return 0 if @address > $max; - return 0 unless $address =~ /^[a-f:]+$/; + return 0 unless $address =~ /^[a-f:\d]+$/; return 0 unless ( @address == $max ) || $address =~ /::/; return 0 if $address =~ /:::/ || $address =~ /::.*::/;