Adjust log of DNS settings according to gateway

This commit is contained in:
Davide De Rosa 2022-10-13 18:34:01 +02:00
parent 8df7e90c95
commit f17bb110c2
1 changed files with 7 additions and 3 deletions

View File

@ -707,9 +707,13 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
log.info("DNS: Using servers \(dnsServers.maskedDescription)") log.info("DNS: Using servers \(dnsServers.maskedDescription)")
dnsSettings = NEDNSSettings(servers: dnsServers) dnsSettings = NEDNSSettings(servers: dnsServers)
} else { } else {
// log.warning("DNS: No servers provided, using fall-back servers: \(fallbackDNSServers.maskedDescription)") // log.warning("DNS: No servers provided, using fall-back servers: \(fallbackDNSServers.maskedDescription)")
// dnsSettings = NEDNSSettings(servers: fallbackDNSServers) // dnsSettings = NEDNSSettings(servers: fallbackDNSServers)
if isGateway {
log.warning("DNS: No settings provided, using current network settings") log.warning("DNS: No settings provided, using current network settings")
} else {
log.warning("DNS: No settings provided")
}
} }
} }