From 15d68a0eed9d81062034ad1bfd1617feb2e7a0f7 Mon Sep 17 00:00:00 2001 From: Kane Dou Date: Fri, 28 Dec 2018 17:01:16 +0800 Subject: [PATCH] make http transport aware of proxy from envvar --- tunneldns/https_upstream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tunneldns/https_upstream.go b/tunneldns/https_upstream.go index 27e3d09b..0544112a 100644 --- a/tunneldns/https_upstream.go +++ b/tunneldns/https_upstream.go @@ -39,6 +39,7 @@ func NewUpstreamHTTPS(endpoint string) (Upstream, error) { TLSClientConfig: tls, DisableCompression: true, MaxIdleConns: 1, + Proxy: http.ProxyFromEnvironment, } http2.ConfigureTransport(transport)