aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuardNetworkExtension
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 15:01:37 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 15:01:37 +0100
commit394a0cbeb03d41af9d791db1c09054e4ad547f6b (patch)
treec773e491aafdce7f1a56af2a2ccb8e433a8f4ece /WireGuard/WireGuardNetworkExtension
parentTunnelsManager: When creating/modifying a tunnel, update the associated object (diff)
downloadwireguard-apple-394a0cbeb03d41af9d791db1c09054e4ad547f6b.tar.xz
wireguard-apple-394a0cbeb03d41af9d791db1c09054e4ad547f6b.zip
PacketTunnelProvider: proper fix for 32073323
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
index 5ac6b282..8b96bae5 100644
--- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
+++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
@@ -95,6 +95,13 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
wgTurnOff(handle)
}
completionHandler()
+
+ #if os(macOS)
+ // HACK: This is a filthy hack to work around Apple bug 32073323 (dup'd by us as 47526107).
+ // Remove it when they finally fix this upstream and the fix has been rolled out to
+ // sufficient quantities of users.
+ exit(0)
+ #endif
}
override func handleAppMessage(_ messageData: Data, completionHandler: ((Data?) -> Void)? = nil) {