From: Jason A. Donenfeld Date: Tue, 15 Oct 2019 14:51:50 +0000 (+0200) Subject: Revert "NetworkExtension: don't use exit(0) hack on Catalina" X-Git-Tag: 0.0.20191105-16~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=437f0dc46df0fd23e803d21faca9046086d373e3;p=thirdparty%2Fwireguard-apple.git Revert "NetworkExtension: don't use exit(0) hack on Catalina" This reverts commit 3619279a65d9a506fb13d7f24909b38a5202fa8f. Still broken! Signed-off-by: Jason A. Donenfeld --- diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift index cf062af..f8d87d7 100644 --- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift +++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift @@ -99,10 +99,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider { // 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. - let osVersion = ProcessInfo.processInfo.operatingSystemVersion - if osVersion.majorVersion <= 10 && osVersion.minorVersion <= 14 { - exit(0) - } + exit(0) #endif }