![]() ![]() | ![]() |
version 1.782.2.1, 2006/09/28 01:42:32 | version 1.782.2.2, 2006/09/28 18:23:32 |
---|---|
Line 7229 sub get_iphost { | Line 7229 sub get_iphost { |
chomp($configline); | chomp($configline); |
if ($configline) { | if ($configline) { |
my ($host,$type) = split(':',$configline,2); | my ($host,$type) = split(':',$configline,2); |
if ($type eq '') { $type = 'default' }; | if (!defined($type) || $type eq '') { $type = 'default' }; |
push(@{ $spareid{$type} }, $host); | push(@{ $spareid{$type} }, $host); |
} | } |
} | } |