PacketTunnelSettingsGenerator: use 127.0.0.1 as dummy address

It turns out that using 0.0.0.0 somehow conflicts with DNS lookups when
CLAT is in use.
This commit is contained in:
Jason A. Donenfeld 2019-01-08 01:51:12 +01:00
parent 83cc642b34
commit a266171157
1 changed files with 1 additions and 3 deletions

View File

@ -63,9 +63,7 @@ class PacketTunnelSettingsGenerator {
* make sense. So, we fill it in with this placeholder, which is not
* a valid IP address that will actually route over the Internet.
*/
let remoteAddress = "0.0.0.0"
let networkSettings = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: remoteAddress)
let networkSettings = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: "127.0.0.1")
let dnsServerStrings = tunnelConfiguration.interface.dns.map { $0.stringRepresentation }
let dnsSettings = NEDNSSettings(servers: dnsServerStrings)