Subject: | "::" not recognized as a valid IPv6 IP |
When attempting to add a range of ":: -
2001:1ff:ffff:ffff:ffff:ffff:ffff:ffff" to a Net::CIDR::Lite object
using the add() method, I encountered this error:
Can't determine ip format at
/usr/local/lib/perl5/site_perl/5.8.8/Net/CIDR/Lite.pm line 198
Net::CIDR::Lite::add_range('Net::CIDR::Lite=HASH(0x106b260)',
':: - 2001:1ff:ffff:ffff:ffff:ffff:ffff:ffff') called at <redacted> line 310
A quick look at the source seems to indicate that this may be a problem
in _pack_ipv6, though I wasn't able to quickly figure out what a proper
solution might be. Using 0000:0000:0000:0000:0000:0000:0000:0000
instead of :: works just fine, and I imagine (though I haven't tried it)
that other variants including less zeroes would as well. Thanks for
your time and making this module available!
Best regards,
Tim Wilde