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:
parent
469523cac5
commit
e075ba6a76
|
@ -661,10 +661,7 @@ extension OpenVPNTunnelProvider: OpenVPNSessionDelegate {
|
|||
log.info("\tHTTPS URL: \(serverURL.maskedDescription)")
|
||||
|
||||
case .tls:
|
||||
guard let dnsServers = cfg.configuration.dnsServers else {
|
||||
session?.shutdown(error: OpenVPNProviderError.dnsFailure)
|
||||
return
|
||||
}
|
||||
dnsServers = cfg.configuration.dnsServers ?? []
|
||||
guard let serverName = cfg.configuration.dnsTLSServerName else {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue