From: Andrej Mihajlov Date: Wed, 2 Dec 2020 12:40:08 +0000 (+0100) Subject: WireGuardKit: Add TODO to log the error coming from `withReresolvedIP` X-Git-Tag: 1.0.10-18~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=384b5142902e4706062434b058a10d4d7ea3d734;p=thirdparty%2Fwireguard-apple.git WireGuardKit: Add TODO to log the error coming from `withReresolvedIP` Signed-off-by: Andrej Mihajlov --- diff --git a/WireGuardKit/Sources/WireGuardKit/PacketTunnelSettingsGenerator.swift b/WireGuardKit/Sources/WireGuardKit/PacketTunnelSettingsGenerator.swift index e6f0a1f..f958fdd 100644 --- a/WireGuardKit/Sources/WireGuardKit/PacketTunnelSettingsGenerator.swift +++ b/WireGuardKit/Sources/WireGuardKit/PacketTunnelSettingsGenerator.swift @@ -19,6 +19,7 @@ class PacketTunnelSettingsGenerator { var wgSettings = "" for (index, peer) in tunnelConfiguration.peers.enumerated() { wgSettings.append("public_key=\(peer.publicKey.hexKey)\n") + // TODO: log the error returned by `withReresolvedIP` if let endpoint = try? resolvedEndpoints[index]?.withReresolvedIP() { if case .name(_, _) = endpoint.host { assert(false, "Endpoint is not resolved") } wgSettings.append("endpoint=\(endpoint.stringRepresentation)\n")