Do not allow TLS versions less than 1.2 in DoH client
This commit is contained in:
parent
b3bcce97da
commit
0a551619c9
|
@ -34,7 +34,7 @@ func NewUpstreamHTTPS(endpoint string) (Upstream, error) {
|
|||
}
|
||||
|
||||
// Update TLS and HTTP client configuration
|
||||
tls := &tls.Config{ServerName: u.Hostname()}
|
||||
tls := &tls.Config{ServerName: u.Hostname() MinVersion: tls.VersionTLS12}
|
||||
transport := &http.Transport{
|
||||
TLSClientConfig: tls,
|
||||
DisableCompression: true,
|
||||
|
|
Loading…
Reference in New Issue