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
|
// Update TLS and HTTP client configuration
|
||||||
tls := &tls.Config{ServerName: u.Hostname()}
|
tls := &tls.Config{ServerName: u.Hostname() MinVersion: tls.VersionTLS12}
|
||||||
transport := &http.Transport{
|
transport := &http.Transport{
|
||||||
TLSClientConfig: tls,
|
TLSClientConfig: tls,
|
||||||
DisableCompression: true,
|
DisableCompression: true,
|
||||||
|
|
Loading…
Reference in New Issue