diff --git a/README b/README index cac2dd062c..dff5b3c71e 100644 --- a/README +++ b/README @@ -138,7 +138,7 @@ multiple servers to run locally and communicate with one another). These IP addresses can be configured by running the command bin/tests/system/ ifconfig.sh up as root. -Some tests require Perl and the Net::DNS and/or IO::Socket::INET6 modules, +Some tests require Perl and the Net::DNS and/or IO::Socket::IP modules, and will be skipped if these are not available. Some tests require Python and the dnspython module and will be skipped if these are not available. See bin/tests/system/README for further details. diff --git a/README.md b/README.md index 9a6ff6e9ce..2d4be24293 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ multiple servers to run locally and communicate with one another). These IP addresses can be configured by running the command `bin/tests/system/ifconfig.sh up` as root. -Some tests require Perl and the `Net::DNS` and/or `IO::Socket::INET6` modules, +Some tests require Perl and the `Net::DNS` and/or `IO::Socket::IP` modules, and will be skipped if these are not available. Some tests require Python and the `dnspython` module and will be skipped if these are not available. See bin/tests/system/README for further details. diff --git a/bin/tests/system/conf.sh.common b/bin/tests/system/conf.sh.common index e87acca600..a91c0d9f4e 100644 --- a/bin/tests/system/conf.sh.common +++ b/bin/tests/system/conf.sh.common @@ -12,7 +12,7 @@ # information regarding copyright ownership. testsock6() { - if test -n "$PERL" && $PERL -e "use IO::Socket::INET6;" 2> /dev/null + if test -n "$PERL" && $PERL -e "use IO::Socket::IP;" 2> /dev/null then $PERL "$TOP/bin/tests/system/testsock6.pl" "$@" else diff --git a/bin/tests/system/testsock6.pl b/bin/tests/system/testsock6.pl index 59036849a4..9d4e5b7a8f 100644 --- a/bin/tests/system/testsock6.pl +++ b/bin/tests/system/testsock6.pl @@ -13,13 +13,14 @@ require 5.001; -use IO::Socket::INET6; +use IO::Socket::IP; foreach $addr (@ARGV) { my $sock; - $sock = IO::Socket::INET6->new(LocalAddr => $addr, - LocalPort => 0, - Proto => tcp) + $sock = IO::Socket::IP->new(LocalAddr => $addr, + Domain => PF_INET6, + LocalPort => 0, + Proto => tcp) or die "Can't bind : $@\n"; close($sock); }