WAF拦截动作可以设置最大封禁时间,从而实现封禁时间随机

This commit is contained in:
GoEdgeLab
2023-03-01 18:59:47 +08:00
parent 5e7d25cc77
commit eb3eca5daa

View File

@@ -9,7 +9,8 @@ type HTTPFirewallBlockAction struct {
StatusCode int `yaml:"statusCode" json:"statusCode"`
Body string `yaml:"body" json:"body"` // supports HTML
URL string `yaml:"url" json:"url"`
Timeout int32 `yaml:"timeout" json:"timeout"`
Timeout int32 `yaml:"timeout" json:"timeout"` // 最小封禁时长
TimeoutMax int32 `yaml:"timeoutMax" json:"timeoutMax"` // 最大封禁时长
Scope FirewallScope `yaml:"scope" json:"scope"`
}