feat: 支持跳过SSL证书检查

This commit is contained in:
Mmx233
2022-03-02 19:45:07 +08:00
parent 21440ca22a
commit 0ef231ef59
4 changed files with 13 additions and 10 deletions

View File

@@ -13,10 +13,11 @@ type Guardian struct {
}
type Basic struct {
Https bool `json:"https" yaml:"https" mapstructure:"https"`
Timeout uint `json:"timeout" yaml:"timeout" mapstructure:"timeout"`
Interfaces string `json:"interfaces" yaml:"interfaces" mapstructure:"interfaces"`
SkipNetCheck bool `json:"skip_net_check" yaml:"skip_net_check" mapstructure:"skip_net_check"`
Https bool `json:"https" yaml:"https" mapstructure:"https"`
SkipCertVerify bool `json:"skip_cert_verify" yaml:"skip_cert_verify" mapstructure:"skip_cert_verify"`
Timeout uint `json:"timeout" yaml:"timeout" mapstructure:"timeout"`
Interfaces string `json:"interfaces" yaml:"interfaces" mapstructure:"interfaces"`
SkipNetCheck bool `json:"skip_net_check" yaml:"skip_net_check" mapstructure:"skip_net_check"`
}
type Settings struct {