aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-12 19:17:32 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-12 19:17:32 +0530
commit5792db22a6d2e9cd0d91edc0399140595e367b27 (patch)
tree497139f0b66ff0cf9b0977ada54bf8614db5a7ca
parentDocument installing WireGuard tunnels using Configuration Profiles (diff)
downloadwireguard-apple-5792db22a6d2e9cd0d91edc0399140595e367b27.tar.xz
wireguard-apple-5792db22a6d2e9cd0d91edc0399140595e367b27.zip
Log migration of tunnel configuration
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
index a57d5ff7..e3da61a1 100644
--- a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
+++ b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
@@ -63,6 +63,7 @@ extension NETunnelProviderProtocol {
guard let oldConfig = providerConfiguration?["WgQuickConfig"] as? String else { return false }
providerConfiguration = nil
guard passwordReference == nil else { return true }
+ wg_log(.debug, message: "Migrating tunnel configuration '\(name)'")
passwordReference = Keychain.makeReference(containing: oldConfig, called: name)
return true
}