Fix socket tests without Socket6

This commit is contained in:
Ilia Ross
2026-09-14 01:36:41 +02:00
parent 267b6bc07f
commit 8a20f7ea34

View File

@@ -5,7 +5,8 @@ use warnings;
no warnings qw(once redefine);
use Test::More;
use FindBin;
use Socket;
# Import IPv6 helpers even when the optional Socket6 module is absent.
use Socket qw(:DEFAULT inet_pton inet_ntop);
use Errno qw(ECONNREFUSED);
my (@events, %connect_ok);