diff --git a/pkg/kfconfig/types.go b/pkg/kfconfig/types.go index 34b9ec9db1a..ed7e2acfe1c 100644 --- a/pkg/kfconfig/types.go +++ b/pkg/kfconfig/types.go @@ -527,7 +527,9 @@ func (c *KfConfig) SyncCache() error { return errors.WithStack(err) } } else { - t := &http.Transport{} + t := &http.Transport{ + Proxy: http.ProxyFromEnvironment, + } t.RegisterProtocol("file", http.NewFileTransport(http.Dir("/"))) t.RegisterProtocol("", http.NewFileTransport(http.Dir("/"))) hclient := &http.Client{Transport: t}