]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commit
Kit: Adapter: do not treat NE settings timeouts as fatal
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 16 Dec 2020 23:24:39 +0000 (00:24 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 16 Dec 2020 23:26:00 +0000 (00:26 +0100)
commitdb4e2915f33aa561fff2401e05319e1b5241fdf8
treeaf58dd8ef9956a9b8559e2e37ba02ca5f2dec5b5
parent20bdf46792905de8862ae7641e50e0f9f99ec946
Kit: Adapter: do not treat NE settings timeouts as fatal

The general Network Extension framework is incredibly buggy, and a
timeout when setting the network settings does not necessarily imply
that the whole operation failed. Simply log the condition and move on.
This restores the app's old behavior.

Reported-by: Filipe Mendonça <cfilipem@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Sources/WireGuardKit/WireGuardAdapter.swift
Sources/WireGuardNetworkExtension/PacketTunnelProvider.swift