aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-25 18:08:09 +0200
committerRoopesh Chander <roop@roopc.net>2019-05-26 00:12:47 +0530
commit5100e597aa54c7c85131cfd32d96059267e95a3d (patch)
tree6f7e7ccf07cdc51b463962a9aeb5b49fde7f7a0d
parentNetworkExtension: apparently the extension process is scoped properly anyway (diff)
downloadwireguard-apple-5100e597aa54c7c85131cfd32d96059267e95a3d.tar.xz
wireguard-apple-5100e597aa54c7c85131cfd32d96059267e95a3d.zip
macOS: do not call out to recent tunnels tracker
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index 2781131..c43fa50 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -70,7 +70,9 @@ class TunnelsManager {
}
}
Keychain.deleteReferences(except: refs)
+ #if os(iOS)
RecentTunnelsTracker.cleanupTunnels(except: tunnelNames)
+ #endif
completionHandler(.success(TunnelsManager(tunnelProviders: tunnelManagers)))
}
#endif