]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: do not call out to recent tunnels tracker
authorJason A. Donenfeld <Jason@zx2c4.com>
Sat, 25 May 2019 16:08:09 +0000 (18:08 +0200)
committerRoopesh Chander <roop@roopc.net>
Sat, 25 May 2019 18:42:47 +0000 (00:12 +0530)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
WireGuard/WireGuard/Tunnel/TunnelsManager.swift

index 27811317152f8488cb51d530b9b75af92949757e..c43fa50aef09a5001224f41169ea9d15b5fed147 100644 (file)
@@ -70,7 +70,9 @@ class TunnelsManager {
                 }
             }
             Keychain.deleteReferences(except: refs)
+            #if os(iOS)
             RecentTunnelsTracker.cleanupTunnels(except: tunnelNames)
+            #endif
             completionHandler(.success(TunnelsManager(tunnelProviders: tunnelManagers)))
         }
         #endif