-Fix Client.pm inability to support IPv6 correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
07154d7127
commit
3b9fe409bf
@ -19,13 +19,13 @@ my $inet6support;
|
||||
if ($^O =~ /^aix/i) { # disable AIX IPV6 TODO fix
|
||||
$inet6support = 0;
|
||||
} else {
|
||||
$inet6support=eval { require Socket6 };
|
||||
$inet6support=eval { require Socket6; 1; };
|
||||
}
|
||||
if ($inet6support) {
|
||||
$inet6support = eval { require IO::Socket::INET6 };
|
||||
$inet6support = eval { require IO::Socket::INET6; 1; };
|
||||
}
|
||||
if ($inet6support) {
|
||||
$inet6support = eval { require IO::Socket::SSL; IO::Socket::SSL->import('inet6'); };
|
||||
$inet6support = eval { require IO::Socket::SSL; IO::Socket::SSL->import('inet6'); 1;};
|
||||
}
|
||||
unless ($inet6support) {
|
||||
eval { require Socket };
|
||||
|
Loading…
Reference in New Issue
Block a user