diff --git a/go.mod b/go.mod index 190793a8..d50da6a0 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/Masterminds/semver v1.5.0 github.com/cloudfoundry/bosh-cli v6.4.1+incompatible - github.com/cloudfoundry/bosh-utils v0.0.330 + github.com/cloudfoundry/bosh-utils v0.0.331 github.com/cppforlife/go-patch v0.2.0 github.com/google/go-github v17.0.0+incompatible github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index 42da341a..4b54ba49 100644 --- a/go.sum +++ b/go.sum @@ -64,8 +64,8 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudfoundry/bosh-cli v6.4.1+incompatible h1:n5/+NIF9QxvGINOrjh6DmO+GTen78MoCj5+LU9L8bR4= github.com/cloudfoundry/bosh-cli v6.4.1+incompatible/go.mod h1:rzIB+e1sn7wQL/TJ54bl/FemPKRhXby5BIMS3tLuWFM= -github.com/cloudfoundry/bosh-utils v0.0.330 h1:sKdaeiQIGyigC0DcBI3JNnY8s+30VfVPQbWWyBM7oFo= -github.com/cloudfoundry/bosh-utils v0.0.330/go.mod h1:VTDZEc6n+wkaklw4q9Mies3cyPjYZRyCRMw8MoiQBh4= +github.com/cloudfoundry/bosh-utils v0.0.331 h1:tTzr7unubeT6cqaJNMOA0x4tCfTBnXPpVODmRaEEOFU= +github.com/cloudfoundry/bosh-utils v0.0.331/go.mod h1:VTDZEc6n+wkaklw4q9Mies3cyPjYZRyCRMw8MoiQBh4= github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e h1:FQdRViaoDphGRfgrotl2QGsX1gbloe57dbGBS5CG6KY= github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e/go.mod h1:PXmcacyJB/pJjSxEl15IU6rEIKXrhZQRzsr0UTkgNNs= github.com/cloudfoundry/socks5-proxy v0.2.71 h1:oxP5/ua76teNsw2oednISmRzOESf1+L3H4OYn8RSOg0= diff --git a/vendor/github.com/cloudfoundry/bosh-utils/httpclient/default_http_clients.go b/vendor/github.com/cloudfoundry/bosh-utils/httpclient/default_http_clients.go index 9bdf31db..90e9bf31 100644 --- a/vendor/github.com/cloudfoundry/bosh-utils/httpclient/default_http_clients.go +++ b/vendor/github.com/cloudfoundry/bosh-utils/httpclient/default_http_clients.go @@ -54,6 +54,13 @@ func CreateDefaultClientInsecureSkipVerify() *http.Client { return factory{}.New(insecureSkipVerify, external, disableKeepAlives, nil) } +func ResetDialerContext() { + defaultDialerContextFunc = SOCKS5DialContextFuncFromEnvironment((&net.Dialer{ + Timeout: 30 * time.Second, + KeepAlive: 30 * time.Second, + }), proxy.NewSocks5Proxy(proxy.NewHostKey(), log.New(ioutil.Discard, "", log.LstdFlags), 1*time.Minute)) +} + type factory struct{} func (f factory) New(insecureSkipVerify, externalClient bool, disableKeepAlives bool, certPool *x509.CertPool) *http.Client { diff --git a/vendor/modules.txt b/vendor/modules.txt index 8bd10b31..354635a9 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -30,7 +30,7 @@ github.com/cloudfoundry/bosh-cli/director github.com/cloudfoundry/bosh-cli/director/template github.com/cloudfoundry/bosh-cli/io github.com/cloudfoundry/bosh-cli/uaa -# github.com/cloudfoundry/bosh-utils v0.0.330 +# github.com/cloudfoundry/bosh-utils v0.0.331 ## explicit; go 1.18 github.com/cloudfoundry/bosh-utils/crypto github.com/cloudfoundry/bosh-utils/errors