mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-03-23 14:00:02 +00:00
minor refactoring change
This commit is contained in:
@@ -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() + "] ";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user