fix for bug 4074: different ifconfig -a output on RHEL7

This commit is contained in:
ligc 2014-04-17 21:23:27 -05:00
parent 7a3555f5d4
commit 95f45af6b2

View File

@ -1621,8 +1621,10 @@ sub gethost_ips
else
{
my ($inet, $addr1, $Bcast, $Mask) = split(" ", $addr);
@ip = split(":", $addr1);
push @ipaddress, $ip[1];
#@ip = split(":", $addr1);
#push @ipaddress, $ip[1];
$addr1 =~ s/.*://;
push @ipaddress, $addr1;
}
}
else