From fb0c7292ac2457d226de321c8379bc40c94002ac Mon Sep 17 00:00:00 2001 From: Mike Cardwell Date: Wed, 25 Nov 2020 08:53:21 +0000 Subject: [PATCH] Rename TlsVerify to TLSVerify --- pkg/config/server_common.go | 2 +- pkg/plugin/server/http.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/config/server_common.go b/pkg/config/server_common.go index f22db535..e9be2081 100644 --- a/pkg/config/server_common.go +++ b/pkg/config/server_common.go @@ -467,7 +467,7 @@ func UnmarshalPluginsFromIni(sections ini.File, cfg *ServerCommonConf) { Addr: section["addr"], Path: section["path"], Ops: strings.Split(section["ops"], ","), - TlsVerify: tls_verify, + TLSVerify: tls_verify, } for i := range options.Ops { options.Ops[i] = strings.TrimSpace(options.Ops[i]) diff --git a/pkg/plugin/server/http.go b/pkg/plugin/server/http.go index 3cb430cf..b6116cea 100644 --- a/pkg/plugin/server/http.go +++ b/pkg/plugin/server/http.go @@ -32,7 +32,7 @@ type HTTPPluginOptions struct { Addr string Path string Ops []string - TlsVerify bool + TLSVerify bool } type httpPlugin struct { @@ -44,7 +44,7 @@ type httpPlugin struct { func NewHTTPPluginOptions(options HTTPPluginOptions) Plugin { var client *http.Client - if options.TlsVerify == false { + if options.TLSVerify == false { tr := &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, }