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 eb381a3b96
commit 204737f826

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