mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
WAF允许ALLOW动作增加有效范围
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
package firewallconfigs
|
||||
|
||||
type AllowScope = string
|
||||
|
||||
const (
|
||||
AllowScopeGroup AllowScope = "group"
|
||||
AllowScopeServer AllowScope = "server"
|
||||
AllowScopeGlobal AllowScope = "global"
|
||||
)
|
||||
|
||||
type HTTPFirewallAllowAction struct {
|
||||
Life int64 `yaml:"life" json:"life"`
|
||||
Scope AllowScope `yaml:"scope" json:"scope"`
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ var AllActions = []*HTTPFirewallActionDefinition{
|
||||
{
|
||||
Name: "允许通过",
|
||||
Code: HTTPFirewallActionAllow,
|
||||
Description: "允许正常通过,不记录到日志。",
|
||||
Description: "允许跳过规则集正常通过防火墙。",
|
||||
Category: HTTPFirewallActionCategoryAllow,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user