Am Mi 14. Feb 2018, 15:43:41, CHORNY schrieb:
Show quoted text> On Wed Feb 14 15:10:22 2018, SULLR wrote:
> > This should hopefully be fixed in commit 2c475e7 where I define the
> > NI_* constants if no IPv6 is available.
>
> It isn't. Tests still die.
Should be hopefully better now with commit 276e780
Show quoted text>
> Socket is a core module, so it is always present. And it is always
> loaded by IO::Socket::SSL if it is present. If Socket::NI_NUMERICHOST
> == Socket6::NI_NUMERICHOST (same for NI_NUMERICSERV), most simple way
> is to write "use Socket qw/NI_NUMERICHOST NI_NUMERICSERV/" at the
> start of program.
The NI_* constants not available in older versions of the Socket module so I cannot rely on this.
Show quoted text>
> P.S. On Windows NI_NUMERICHOST is 2
This actually does not matter. The constants are only used if IPv6 is available and in this case they should have been defined with the correct values.