minor refactoring change

This commit is contained in:
Shreyas Zare
2018-08-04 15:11:37 +05:30
parent 4a342ef2ae
commit c9171ded8e

View File

@@ -194,8 +194,8 @@ namespace DnsServerCore
if (ep == null)
ipInfo = "";
else if (NetUtilities.IsIPv4MappedIPv6Address(ep.Address))
ipInfo = "[" + NetUtilities.ConvertFromIPv4MappedIPv6Address(ep.Address).ToString() + ":" + ep.Port + "] ";
else if (ep.Address.IsIPv4MappedToIPv6)
ipInfo = "[" + ep.Address.MapToIPv4().ToString() + ":" + ep.Port + "] ";
else
ipInfo = "[" + ep.ToString() + "] ";