diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-23 13:04:55 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-23 13:04:55 +0530 |
commit | b946cbc0f302b860729a48459e22b22918a23cd0 (patch) | |
tree | dbf0fa26abb84a186322dada0b6488337ad7002e /WireGuard/WireGuardNetworkExtension | |
parent | Tunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switch (diff) | |
download | wireguard-apple-b946cbc0f302b860729a48459e22b22918a23cd0.tar.xz wireguard-apple-b946cbc0f302b860729a48459e22b22918a23cd0.zip |
NE: All DNS queries must first go through the VPN's DNS servers
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuardNetworkExtension')
-rw-r--r-- | WireGuard/WireGuardNetworkExtension/PacketTunnelSettingsGenerator.swift | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/PacketTunnelSettingsGenerator.swift b/WireGuard/WireGuardNetworkExtension/PacketTunnelSettingsGenerator.swift index d26d802..4007196 100644 --- a/WireGuard/WireGuardNetworkExtension/PacketTunnelSettingsGenerator.swift +++ b/WireGuard/WireGuardNetworkExtension/PacketTunnelSettingsGenerator.swift @@ -75,7 +75,9 @@ class PacketTunnelSettingsGenerator { // DNS let dnsServerStrings = tunnelConfiguration.interface.dns.map { $0.stringRepresentation() } - networkSettings.dnsSettings = NEDNSSettings(servers: dnsServerStrings) + let dnsSettings = NEDNSSettings(servers: dnsServerStrings) + dnsSettings.matchDomains = [""] // All DNS queries must first go through the VPN's DNS + networkSettings.dnsSettings = dnsSettings // MTU |