From bc3c7b9dd1e6388faf832f576bc0b95f9bd9db4e Mon Sep 17 00:00:00 2001 From: alileza Date: Wed, 27 Jun 2018 12:02:52 +0200 Subject: [PATCH] Update DefaultRoundTripper to DialContext because Dial is deprecated Signed-off-by: alileza --- api/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/client.go b/api/client.go index bf26724..09af749 100644 --- a/api/client.go +++ b/api/client.go @@ -30,10 +30,10 @@ import ( // DefaultRoundTripper is used if no RoundTripper is set in Config. var DefaultRoundTripper http.RoundTripper = &http.Transport{ Proxy: http.ProxyFromEnvironment, - Dial: (&net.Dialer{ + DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, - }).Dial, + }).DialContext, TLSHandshakeTimeout: 10 * time.Second, }