NetworkExtension: don't use exit(0) hack on Catalina
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
4c37a4b7a7
commit
1b6170cbc9
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue