From eeb74063824622114731be322e7070b998064101 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Fri, 22 May 2020 13:20:03 +0200 Subject: [PATCH] Improves IP conversion by returning unresolved name only --- lib/core/tools/Convert-IcingaEndpointsToIP.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/tools/Convert-IcingaEndpointsToIP.psm1 b/lib/core/tools/Convert-IcingaEndpointsToIP.psm1 index 0131db4..f5201c7 100644 --- a/lib/core/tools/Convert-IcingaEndpointsToIP.psm1 +++ b/lib/core/tools/Convert-IcingaEndpointsToIP.psm1 @@ -49,7 +49,7 @@ function Convert-IcingaEndpointsToIPv4() ); $ResolvedNetwork += $entry.Replace($Network.address, $ResolvedIP); } catch { - $UnresolvedNetwork += $entry; + $UnresolvedNetwork += $Network.address; $HasUnresolved = $TRUE; } }