diff --git a/client/client_impl.go b/client/client_impl.go index ac6b42513a..b421b2a44d 100644 --- a/client/client_impl.go +++ b/client/client_impl.go @@ -76,7 +76,10 @@ func NewClientTokenTLS(uri, token string, c *tls.Config) Client { auther := config.Client(oauth2.NoContext, &oauth2.Token{AccessToken: token}) if c != nil { if trans, ok := auther.Transport.(*oauth2.Transport); ok { - trans.Base = &http.Transport{TLSClientConfig: c} + trans.Base = &http.Transport{ + TLSClientConfig: c, + Proxy: http.ProxyFromEnvironment, + } } } return &client{client: auther, base: uri, token: token}