From b32c1848be56fd869af88693c379e396fd4597b8 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 5 Nov 2018 15:48:34 +0100 Subject: [PATCH] Unmask harmless destination port --- TunnelKit/Sources/AppExtension/Transport/NETCPInterface.swift | 2 +- TunnelKit/Sources/AppExtension/Transport/NEUDPInterface.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TunnelKit/Sources/AppExtension/Transport/NETCPInterface.swift b/TunnelKit/Sources/AppExtension/Transport/NETCPInterface.swift index d8b9e10..644dfac 100644 --- a/TunnelKit/Sources/AppExtension/Transport/NETCPInterface.swift +++ b/TunnelKit/Sources/AppExtension/Transport/NETCPInterface.swift @@ -252,6 +252,6 @@ extension NETCPSocket { guard let hostEndpoint = impl.endpoint as? NWHostEndpoint else { return impl.endpoint.maskedDescription } - return "\(hostEndpoint.hostname.maskedDescription):\(hostEndpoint.port.maskedDescription)" + return "\(hostEndpoint.hostname.maskedDescription):\(hostEndpoint.port)" } } diff --git a/TunnelKit/Sources/AppExtension/Transport/NEUDPInterface.swift b/TunnelKit/Sources/AppExtension/Transport/NEUDPInterface.swift index 10bc331..e2ce285 100644 --- a/TunnelKit/Sources/AppExtension/Transport/NEUDPInterface.swift +++ b/TunnelKit/Sources/AppExtension/Transport/NEUDPInterface.swift @@ -238,6 +238,6 @@ extension NEUDPSocket { guard let hostEndpoint = impl.endpoint as? NWHostEndpoint else { return impl.endpoint.maskedDescription } - return "\(hostEndpoint.hostname.maskedDescription):\(hostEndpoint.port.maskedDescription)" + return "\(hostEndpoint.hostname.maskedDescription):\(hostEndpoint.port)" } }