minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
67286c7f41
commit
c45a6808d5
@ -23,6 +23,7 @@ use Socket;
|
||||
use strict;
|
||||
use warnings "all";
|
||||
my $netipmodule = eval {require Net::IP;};
|
||||
my $socket6support = eval { require Socket6 };
|
||||
|
||||
our @ISA = qw(Exporter);
|
||||
|
||||
@ -110,8 +111,6 @@ sub gethostname()
|
||||
}
|
||||
}
|
||||
|
||||
my $socket6support = eval { require Socket6 };
|
||||
|
||||
if (($iporhost !~ /\d+\.\d+\.\d+\.\d+/) && ($iporhost !~ /:/))
|
||||
{
|
||||
#why you do so? pass in a hostname and only want a hostname??
|
||||
@ -186,7 +185,6 @@ sub getipaddr()
|
||||
return undef;
|
||||
}
|
||||
}
|
||||
my $socket6support = eval { require Socket6 };
|
||||
|
||||
if (($iporhost =~ /\d+\.\d+\.\d+\.\d+/) || ($iporhost =~ /:/))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user