From 54bafc26b7e5ba4e2ab62afeeaf21e350ab68c03 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Tue, 16 Feb 2016 10:05:05 -0800 Subject: [PATCH] Add support for forwarding Docker client through SOCKS proxy Signed-off-by: Alexander Morozov --- plugins/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/client.go b/plugins/client.go index 72c7331..985f656 100644 --- a/plugins/client.go +++ b/plugins/client.go @@ -30,7 +30,9 @@ func NewClient(addr string, tlsConfig tlsconfig.Options) (*Client, error) { tr.TLSClientConfig = c protoAndAddr := strings.Split(addr, "://") - sockets.ConfigureTransport(tr, protoAndAddr[0], protoAndAddr[1]) + if err := sockets.ConfigureTransport(tr, protoAndAddr[0], protoAndAddr[1]); err != nil { + return nil, err + } scheme := protoAndAddr[0] if scheme != "https" {