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" {