aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuardNetworkExtension
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-23 13:04:55 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-23 13:04:55 +0530
commitb946cbc0f302b860729a48459e22b22918a23cd0 (patch)
treedbf0fa26abb84a186322dada0b6488337ad7002e /WireGuard/WireGuardNetworkExtension
parentTunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switch (diff)
downloadwireguard-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.swift4
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