WAF策略增加记录区域封禁日志选项

This commit is contained in:
刘祥超
2022-07-16 18:45:50 +08:00
parent 380bf3e1c2
commit 65095d1290

View File

@@ -3,14 +3,16 @@
package firewallconfigs
var DefaultHTTPFirewallPolicyLogConfig = &HTTPFirewallPolicyLogConfig{
IsOn: true,
RequestBody: true,
IsOn: true,
RequestBody: true,
RegionDenying: false,
}
type HTTPFirewallPolicyLogConfig struct {
IsPrior bool `yaml:"isPrior" json:"isPrior"`
IsOn bool `yaml:"isOn" json:"isOn"`
RequestBody bool `yaml:"requestBody" json:"requestBody"`
IsPrior bool `yaml:"isPrior" json:"isPrior"`
IsOn bool `yaml:"isOn" json:"isOn"`
RequestBody bool `yaml:"requestBody" json:"requestBody"` // 是否记录RequestBody
RegionDenying bool `yaml:"regionDenying" json:"regionDenying"` // 是否记录区域封禁日志
}
func (this *HTTPFirewallPolicyLogConfig) Init() error {