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:
ligc 2012-12-11 11:11:00 +00:00
parent e7c5f506fe
commit 9de743b141
2 changed files with 14 additions and 0 deletions

View File

@ -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 };

View File

@ -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 };