Print description of new DNS settings
This commit is contained in:
parent
dd81ad7a99
commit
fd9d34b49c
|
@ -613,11 +613,28 @@ extension OpenVPN.Configuration {
|
|||
} else {
|
||||
log.info("\tGateway: not configured")
|
||||
}
|
||||
switch dnsProtocol {
|
||||
case .https:
|
||||
if let dnsHTTPSURL = dnsHTTPSURL {
|
||||
log.info("\tDNS over HTTPS: \(dnsHTTPSURL.maskedDescription)")
|
||||
} else {
|
||||
log.info("\tDNS: not configured")
|
||||
}
|
||||
|
||||
case .tls:
|
||||
if let dnsTLSServerName = dnsTLSServerName {
|
||||
log.info("\tDNS over TLS: \(dnsTLSServerName.maskedDescription)")
|
||||
} else {
|
||||
log.info("\tDNS: not configured")
|
||||
}
|
||||
|
||||
default:
|
||||
if let dnsServers = dnsServers, !dnsServers.isEmpty {
|
||||
log.info("\tDNS: \(dnsServers.maskedDescription)")
|
||||
} else {
|
||||
log.info("\tDNS: not configured")
|
||||
}
|
||||
}
|
||||
if let searchDomains = searchDomains, !searchDomains.isEmpty {
|
||||
log.info("\tSearch domains: \(searchDomains.maskedDescription)")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue