From 1869857127bc10aae42491ae88ae24a6935696b5 Mon Sep 17 00:00:00 2001 From: hax0r31337 <65506006+hax0r31337@users.noreply.github.com> Date: Sun, 27 Nov 2022 11:24:18 +0800 Subject: [PATCH] follow environment proxy settings --- upstream/upstream_doh.go | 1 + 1 file changed, 1 insertion(+) 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.