diff --git a/upstream/upstream_doh.go b/upstream/upstream_doh.go index 1a285a2ba..a292e1067 100644 --- a/upstream/upstream_doh.go +++ b/upstream/upstream_doh.go @@ -398,6 +398,7 @@ func (p *dnsOverHTTPS) createTransport() (t http.RoundTripper, err error) { // make golang http.Client attempt to use HTTP/2. Otherwise, it would // only be used when negotiated on the TLS level. ForceAttemptHTTP2: true, + Proxy: http.ProxyFromEnvironment, } // Explicitly configure transport to use HTTP/2.