فهرست منبع

fix tlsVerify json tag (#3654)

fatedier 1 سال پیش
والد
کامیت
5eb8f3db03
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      pkg/config/legacy/server.go
  2. 1 1
      pkg/config/v1/common.go

+ 1 - 1
pkg/config/legacy/server.go

@@ -27,7 +27,7 @@ type HTTPPluginOptions struct {
 	Addr      string   `ini:"addr"`
 	Path      string   `ini:"path"`
 	Ops       []string `ini:"ops"`
-	TLSVerify bool     `ini:"tls_verify"`
+	TLSVerify bool     `ini:"tlsVerify"`
 }
 
 // ServerCommonConf contains information for a server service. It is

+ 1 - 1
pkg/config/v1/common.go

@@ -109,7 +109,7 @@ type HTTPPluginOptions struct {
 	Addr      string   `json:"addr"`
 	Path      string   `json:"path"`
 	Ops       []string `json:"ops"`
-	TLSVerify bool     `json:"tls_verify,omitempty"`
+	TLSVerify bool     `json:"tlsVerify,omitempty"`
 }
 
 type HeaderOperations struct {