Subject: | Fail of IO::Socket::INET6 is unreliable on LINUX |
'endpoint' is linux/centos7
'hetzner.tmp.group' is freebsd 11-release
[root@endpoint ~]# cat test6 && perl test6
use warnings;
use strict;
use IO::Socket::INET6;
my $host = '234234:234234';
my $port = 123;
my $fail = 1;
my $sock1 = IO::Socket::INET6->new(
LocalAddr => $host,
LocalPort => $port,
Proto => 'tcp',
ReuseAddr => 1
) or $fail = 0;
warn $fail;
1 at test6 line 18.
[root@endpoint ~]#
╭─paul@hetzner.tmp.group ~/Perl/PL-Net-Hacky-Detect-IP/Net-Hacky-Detect-IP ‹master*›
╰─➤ cat test56 && perl test56 130 ↵
use warnings;
use strict;
use IO::Socket::INET6;
my $host = '234234:234234';
my $port = 123;
my $fail = 1;
my $sock1 = IO::Socket::INET6->new(
LocalAddr => $host,
LocalPort => $port,
Proto => 'tcp',
ReuseAddr => 1
) or $fail = 0;
warn $fail;
0 at test56 line 18.