Make DNS servers optional in DoT like in DoH

Domain name can actually by an IP address and not require a DNS
server to resolve.
This commit is contained in:
Davide De Rosa 2022-04-25 21:46:16 +02:00
parent 469523cac5
commit e075ba6a76
1 changed files with 1 additions and 4 deletions

View File

@ -661,10 +661,7 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
log.info("\tHTTPS URL: \(serverURL.maskedDescription)") log.info("\tHTTPS URL: \(serverURL.maskedDescription)")
case .tls: case .tls:
guard let dnsServers = cfg.configuration.dnsServers else { dnsServers = cfg.configuration.dnsServers ?? []
session?.shutdown(error: OpenVPNProviderError.dnsFailure)
return
}
guard let serverName = cfg.configuration.dnsTLSServerName else { guard let serverName = cfg.configuration.dnsTLSServerName else {
break break
} }