PacketTunnelProvider: proper fix for 32073323

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2019-02-07 15:01:37 +01:00
parent 868fee0477
commit 394a0cbeb0
2 changed files with 7 additions and 15 deletions
@@ -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) {