From c0bf100266158b60de3971f88f6d56632d2db1af Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Wed, 4 Sep 2019 14:46:05 +0200 Subject: [PATCH] proxy/router: respect http proxy environment variables --- proxy/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/router.go b/proxy/router.go index c86e7a7..7eadad8 100644 --- a/proxy/router.go +++ b/proxy/router.go @@ -59,6 +59,7 @@ func NewRouter(srv *Server, opts *RouterOptions) *Router { rt.proxy = proxy rt.proxy.Transport = &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, } rt.proxy.ModifyResponse = func(r *http.Response) error {