瀏覽代碼

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 {