wireguard-apple/Sources
Jason A. Donenfeld 20bdf46792 Kit: PacketTunnelSettingsGenerator: do not require DNS queries if no DNS
Prior, we would set matchDomains=[""] even if the user didn't provide
any DNS servers. This was kind of incoherent, but I guess we had in mind
some kind of non-sensical leakproof scheme that never really worked
anyway. NetworkExtension didn't like this, so setTunnelNetworkSettings
would, rather than return an error, simply timeout and never call its
callback function. But everything worked fine, so we had code in the UI
to check to make sure everything was okay after 5 seconds or so of no
callback. Recent changes made the timeout fatal on the network extension
side, so rather than succeed, configs with no DNS server started
erroring out, causing user reports.

This commit attempts to handle the root cause of the timeout issue by
not twiddling with DNS settings if no DNS server was specified. For now,
however, it leaves the hard-timeout semantics in place.

Reported-by: Filipe Mendonça <cfilipem@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-12-17 00:10:28 +01:00
..
Shared global: support DNS search domains 2020-12-15 15:54:12 +01:00
WireGuardApp UI: macOS: remove donation link 2020-12-16 00:04:32 +01:00
WireGuardKit Kit: PacketTunnelSettingsGenerator: do not require DNS queries if no DNS 2020-12-17 00:10:28 +01:00
WireGuardKitC global: bump year in header 2020-12-04 12:15:29 +01:00
WireGuardKitGo WireGuardKitGo: update to latest wireguard-go tag 2020-12-15 13:16:52 +01:00
WireGuardNetworkExtension global: bump year in header 2020-12-04 12:15:29 +01:00