Subject: | IPv6 addresses containing 7 octets followed by a double colon are not parsed properly |
Date: | Tue, 4 Aug 2020 14:10:05 +0000 |
To: | "bug-Net-IP [...] rt.cpan.org" <bug-Net-IP [...] rt.cpan.org> |
From: | Zachary Bull <zachary [...] netcraft.com> |
Hi,
When an IPv6 address contains 7 octets, followed by a double colon, the IP address is not parsed properly.
For example:
use Net::IP;
use Data::Dumper;
my $ip = Net::IP->new("abc:abc:abc:abc:abc:abc:abc::/112");
print Dumper($ip);
Which outputs:
$VAR1 = undef;
I have attached a patch which fixes this behaviour to this bug report.
Best regards,
Zachary
Zachary Bull
Netcraft https://www.netcraft.com/ Phone: +44 1225 447500
Double Queen's Award for Enterprise 2020 - https://netcraft.com/queens-award
Message body is not shown because sender requested not to inline it.