fix for bug 3214: check if IPv6 is enabled on MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e7c5f506fe
commit
9de743b141
@ -24,6 +24,13 @@ if ($inet6support) {
|
||||
if ($inet6support) {
|
||||
$inet6support = eval { require IO::Socket::SSL; IO::Socket::SSL->import('inet6'); 1;};
|
||||
}
|
||||
|
||||
# Is IPv6 enabled on the MN or xCAT client at all?
|
||||
my $ipv6enabled = `ip addr | grep inet6`;
|
||||
if (!$ipv6enabled) {
|
||||
$inet6support = 0;
|
||||
}
|
||||
|
||||
unless ($inet6support) {
|
||||
eval { require Socket };
|
||||
eval { require IO::Socket::INET };
|
||||
|
@ -64,6 +64,13 @@ if ($inet6support) {
|
||||
if ($inet6support) {
|
||||
$inet6support = eval { require IO::Socket::SSL; IO::Socket::SSL->import('inet6'); 1; };
|
||||
}
|
||||
|
||||
# Is IPv6 enabled on the MN or SN at all?
|
||||
my $ipv6enabled = `ip addr | grep inet6`;
|
||||
if (!$ipv6enabled) {
|
||||
$inet6support = 0;
|
||||
}
|
||||
|
||||
unless ($inet6support) {
|
||||
eval { require Socket };
|
||||
eval { require IO::Socket::INET };
|
||||
|
Loading…
Reference in New Issue
Block a user