Log info about DNS servers in use
This commit is contained in:
parent
c40d42c772
commit
b04f7f20d4
@ -628,7 +628,9 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
|
|||||||
var dnsServers = cfg.sessionConfiguration.dnsServers ?? options.dnsServers ?? []
|
var dnsServers = cfg.sessionConfiguration.dnsServers ?? options.dnsServers ?? []
|
||||||
|
|
||||||
// fall back
|
// fall back
|
||||||
if dnsServers.isEmpty {
|
if !dnsServers.isEmpty {
|
||||||
|
log.info("DNS: Using servers \(dnsServers.maskedDescription)")
|
||||||
|
} 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)")
|
||||||
dnsServers = fallbackDNSServers
|
dnsServers = fallbackDNSServers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user