mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-03-04 20:52:02 +00:00
NE: All DNS queries must first go through the VPN's DNS servers
This commit is contained in:
parent
af49397caa
commit
ff64ef79f1
@ -75,7 +75,9 @@ class PacketTunnelSettingsGenerator {
|
|||||||
// DNS
|
// DNS
|
||||||
|
|
||||||
let dnsServerStrings = tunnelConfiguration.interface.dns.map { $0.stringRepresentation() }
|
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
|
// MTU
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user