diff options
| author | 2020-12-03 15:10:29 +0100 | |
|---|---|---|
| committer | 2020-12-04 11:50:43 +0100 | |
| commit | d440a91b0e0e47745991625ef20fde4bfb8d16b3 (patch) | |
| tree | 8aa47bfd191d48b210a3712371ba6788f663798a /Sources/WireGuardKit/WireGuardAdapter.swift | |
| parent | WireGuardApp: Disable SWIFT_PRECOMPILE_BRIDGING_HEADER (diff) | |
| download | wireguard-apple-d440a91b0e0e47745991625ef20fde4bfb8d16b3.tar.xz wireguard-apple-d440a91b0e0e47745991625ef20fde4bfb8d16b3.zip | |
WireGuardKit: Log XLAT resolution errors
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Diffstat (limited to 'Sources/WireGuardKit/WireGuardAdapter.swift')
| -rw-r--r-- | Sources/WireGuardKit/WireGuardAdapter.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Sources/WireGuardKit/WireGuardAdapter.swift b/Sources/WireGuardKit/WireGuardAdapter.swift index ff48f1b..e8f527a 100644 --- a/Sources/WireGuardKit/WireGuardAdapter.swift +++ b/Sources/WireGuardKit/WireGuardAdapter.swift @@ -336,7 +336,11 @@ public class WireGuardAdapter { #if os(iOS) if let settingsGenerator = self.settingsGenerator { - wgSetConfig(handle, settingsGenerator.endpointUapiConfiguration()) + let (wgSettings, resolutionErrors) = settingsGenerator.endpointUapiConfiguration() + for error in resolutionErrors { + self.logHandler(.error, "Failed to re-resolve \(error.address): \(error.errorDescription ?? "(nil)")") + } + wgSetConfig(handle, wgSettings) } #endif |
