From a42e2dff7fb890b6fc3fe903bae41909a566761f Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 19 Oct 2011 07:47:49 -0700 Subject: [PATCH] Allow caps in 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 06418ab55..3ab7eb922 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:\d]+$/; + return 0 unless $address =~ /^[a-fA-F:\d]+$/; return 0 unless ( @address == $max ) || $address =~ /::/; return 0 if $address =~ /:::/ || $address =~ /::.*::/;