From 5100e597aa54c7c85131cfd32d96059267e95a3d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 25 May 2019 18:08:09 +0200 Subject: [PATCH] macOS: do not call out to recent tunnels tracker Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/Tunnel/TunnelsManager.swift | 2 ++ 1 file changed, 2 insertions(+) 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