parent
53c393f2d7
commit
3505f68b04
|
@ -577,10 +577,7 @@ extension TunnelKitProvider: SessionProxyDelegate {
|
||||||
}
|
}
|
||||||
|
|
||||||
var dnsSettings: NEDNSSettings?
|
var dnsSettings: NEDNSSettings?
|
||||||
var dnsServers = cfg.sessionConfiguration.dnsServers ?? []
|
var dnsServers = cfg.sessionConfiguration.dnsServers ?? reply.options.dnsServers ?? []
|
||||||
if let replyDNSServers = reply.options.dnsServers {
|
|
||||||
dnsServers.append(contentsOf: replyDNSServers)
|
|
||||||
}
|
|
||||||
|
|
||||||
// fall back to system-wide DNS servers
|
// fall back to system-wide DNS servers
|
||||||
if dnsServers.isEmpty {
|
if dnsServers.isEmpty {
|
||||||
|
|
Loading…
Reference in New Issue