aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
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
commit74f55febab98af01a913adc1ceda4ac3e3e3e54e (patch)
tree497139f0b66ff0cf9b0977ada54bf8614db5a7ca /WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
parentDocument installing WireGuard tunnels using Configuration Profiles (diff)
downloadwireguard-apple-74f55febab98af01a913adc1ceda4ac3e3e3e54e.tar.xz
wireguard-apple-74f55febab98af01a913adc1ceda4ac3e3e3e54e.zip
Log migration of tunnel configuration
Diffstat (limited to 'WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift')
-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 a57d5ff..e3da61a 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
}