aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-15 11:44:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-15 11:44:13 +0200
commit1b6170cbc9423dee1154bb3228c64418e702a154 (patch)
tree9120ece46ac8c9956d4bc0ec810f871ec36804ca /WireGuard
parentUI: iOS: adjust colors for iOS 13 (diff)
downloadwireguard-apple-1b6170cbc9423dee1154bb3228c64418e702a154.tar.xz
wireguard-apple-1b6170cbc9423dee1154bb3228c64418e702a154.zip
NetworkExtension: don't use exit(0) hack on Catalina
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift5
1 files changed, 4 insertions, 1 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
index f8d87d7..cf062af 100644
--- a/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
+++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelProvider.swift
@@ -99,7 +99,10 @@ 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.
- exit(0)
+ let osVersion = ProcessInfo.processInfo.operatingSystemVersion
+ if osVersion.majorVersion <= 10 && osVersion.minorVersion <= 14 {
+ exit(0)
+ }
#endif
}