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)")
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue