diff --git a/src/cmd/pprof/pprof.go b/src/cmd/pprof/pprof.go index 5a6e1c14235..24bec07d975 100644 --- a/src/cmd/pprof/pprof.go +++ b/src/cmd/pprof/pprof.go @@ -22,6 +22,7 @@ import ( "time" "cmd/internal/objfile" + "github.com/google/pprof/driver" "github.com/google/pprof/profile" ) @@ -72,7 +73,8 @@ func getProfile(source string, timeout time.Duration) (*profile.Profile, error) client := &http.Client{ Transport: &http.Transport{ ResponseHeaderTimeout: timeout + 5*time.Second, - TLSClientConfig: tlsConfig, + Proxy: http.ProxyFromEnvironment, + TLSClientConfig: tlsConfig, }, } resp, err := client.Get(source)