fix: migrate to go.etcd.io import path (#9987)

with the merge of https://github.com/etcd-io/etcd/pull/11823
etcd v3.5.0 will now have a properly imported versioned path

this fixes our pending migration to newer repo
This commit is contained in:
Harshavardhana
2020-07-07 19:04:29 -07:00
committed by GitHub
parent aa4d1021eb
commit 72e0745e2f
14 changed files with 5315 additions and 473 deletions

View File

@@ -21,6 +21,8 @@ import (
"net"
"net/http"
"time"
"github.com/mattn/go-ieproxy"
)
// DefaultTransport - this default transport is similar to
@@ -28,7 +30,7 @@ import (
// is set to true to avoid decompressing content with 'gzip' encoding.
var DefaultTransport = func(secure bool) http.RoundTripper {
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
Proxy: ieproxy.GetProxyFunc(),
DialContext: (&net.Dialer{
Timeout: 5 * time.Second,
KeepAlive: 15 * time.Second,