Subject: | IPv6 |
I noticed a mention of this module, so looked at it for possible future use.
It doesn't appear to support IPv6. It should.
At a minimum, it should connect to IPv6-only sites. (A good default is ipv6.google.com.)
Better, it should have options to require IPv4 connectivity, IPv6 connectivity, or either. And it would be helpful to be able to find out what address was used. (Many sites have multiple IPv4, IPv6, or a combination.)
It can be useful to know what kind of connectivity is available.
You can add options to the existing API by passing a hashref...
Trivial test case:
perl -de1
DB<1> use Test::RequiresInternet( 'ipv6.google.com' => 80 );
Minor note: the doc isn't clear on what happens when more that one host/port pair is specified. The code says "all must connect successfully"; a reasonable person might think "at least one of these must connect successfully". The latter might be a useful option...