Log effective search domains

This commit is contained in:
Davide De Rosa 2019-10-25 19:08:34 +02:00
parent 4e77f5b6b3
commit 3a38b0da15
1 changed files with 1 additions and 0 deletions

View File

@ -653,6 +653,7 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
dnsSettings.matchDomains = [""]
}
if let searchDomains = cfg.sessionConfiguration.searchDomains ?? options.searchDomains {
log.info("DNS: Using search domains \(searchDomains.maskedDescription)")
dnsSettings.domainName = searchDomains.first
dnsSettings.searchDomains = searchDomains
if !isGateway {