wireguard-apple/WireGuard/WireGuardNetworkExtension
Jason A. Donenfeld 0b828f9b96 Rework DNS and routes in network extension
The DNS resolver prior had useless comments, awful nesting, converted
bytes into strings and back into bytes, and generally made no sense.
That's been rewritten now.

But more fundumentally, this commit made the DNS resolver actually
accomplish its objective, by passing AI_ALL to it. It turns out, though,
that the Go library isn't actually using GAI in the way we need for
parsing IP addresses, so we actually need to do another round, this time
with hints flag as zero, so that we get the DNS64 address.

Additionally, since we're now binding sockets to interfaces, we can
entirely remove the excludedRoutes logic.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-28 19:38:03 +01:00
..
DNSResolver.swift Rework DNS and routes in network extension 2018-12-28 19:38:03 +01:00
ErrorNotifier.swift Localize remaining strings in network extension 2018-12-22 03:42:01 +01:00
Info.plist Plist: Handle crypto export 2018-12-07 18:52:14 +01:00
PacketTunnelProvider.swift Rework DNS and routes in network extension 2018-12-28 19:38:03 +01:00
PacketTunnelSettingsGenerator.swift Rework DNS and routes in network extension 2018-12-28 19:38:03 +01:00
WireGuardNetworkExtension-Bridging-Header.h Logging: Use ringlogger for logging from the extension 2018-12-13 17:37:14 +05:30
WireGuardNetworkExtension.entitlements Xcode: Add app groups capability 2018-11-29 12:01:45 +05:30