Improves IP conversion by returning unresolved name only

This commit is contained in:
Lord Hepipud 2020-05-22 13:20:03 +02:00
parent 4a869458cc
commit eeb7406382

View file

@ -49,7 +49,7 @@ function Convert-IcingaEndpointsToIPv4()
);
$ResolvedNetwork += $entry.Replace($Network.address, $ResolvedIP);
} catch {
$UnresolvedNetwork += $entry;
$UnresolvedNetwork += $Network.address;
$HasUnresolved = $TRUE;
}
}