diff --git a/t/web-lib-funcs-open-socket.t b/t/web-lib-funcs-open-socket.t index 65ce3dc18..69eccc387 100644 --- a/t/web-lib-funcs-open-socket.t +++ b/t/web-lib-funcs-open-socket.t @@ -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);