From 3899576c07a51cf94307d679c76aafd72dcba4f2 Mon Sep 17 00:00:00 2001 From: vaLentin chernoZemski Date: Fri, 14 Sep 2018 13:11:13 +0300 Subject: [PATCH] options.go - Make sure to set the default transport to insecure, if the operator requested so via --ssl-insecure-skip-verify=true or ssl_insecure_skip_verify = true. This commit should fix #403 --- options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.go b/options.go index 949fbba80..f7d8e2460 100644 --- a/options.go +++ b/options.go @@ -131,7 +131,7 @@ func (o *Options) Validate() error { insecureTransport := &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, } - http.DefaultClient = &http.Client{Transport: insecureTransport} + http.DefaultTransport = insecureTransport } msgs := make([]string, 0)