aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-11 21:52:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-11 22:07:18 +0200
commitd976d159d0a4e5f41c898f3da87d99c97e87f11f (patch)
treee24016d5f1703416e483eaf4eeb621d480c0f523 /WireGuard/WireGuard/Tunnel/TunnelsManager.swift
parentui: add donation link (diff)
downloadwireguard-apple-d976d159d0a4e5f41c898f3da87d99c97e87f11f.tar.xz
wireguard-apple-d976d159d0a4e5f41c898f3da87d99c97e87f11f.zip
Keychain: make verification errors only happen when we're sure it's due to not found
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index ec1ea74..efee1e4 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -70,6 +70,7 @@ class TunnelsManager {
if let ref = passwordRef {
refs.insert(ref)
} else {
+ wg_log(.info, message: "Removing orphaned tunnel with non-verifying keychain entry: \(tunnelManager.localizedDescription ?? "<unknown>")")
tunnelManager.removeFromPreferences { _ in }
tunnelManagers.remove(at: index)
}