Add FIXME for default DNS from network interface

This commit is contained in:
Davide De Rosa 2019-04-17 00:46:34 +02:00
parent b199064b94
commit 233aa02169

View File

@ -564,6 +564,7 @@ extension TunnelKitProvider: SessionProxyDelegate {
if dnsServers?.isEmpty ?? true {
dnsServers = reply.options.dnsServers
}
// FIXME: default to DNS servers from current network instead
let dnsSettings = NEDNSSettings(servers: dnsServers ?? [])
if let searchDomain = cfg.sessionConfiguration.searchDomain ?? reply.options.searchDomain {
dnsSettings.domainName = searchDomain