[waf]可以配置阻止动作的状态码和提示内容

This commit is contained in:
刘祥超
2020-11-22 16:54:31 +08:00
parent 9ddd3756c5
commit 97c9f145fa
6 changed files with 86 additions and 11 deletions

View File

@@ -47,11 +47,12 @@ func (this *PolicyAction) RunGet(params struct {
}
this.Data["firewallPolicy"] = maps.Map{
"id": firewallPolicy.Id,
"name": firewallPolicy.Name,
"isOn": firewallPolicy.IsOn,
"description": firewallPolicy.Description,
"groups": internalGroups,
"id": firewallPolicy.Id,
"name": firewallPolicy.Name,
"isOn": firewallPolicy.IsOn,
"description": firewallPolicy.Description,
"groups": internalGroups,
"blockOptions": firewallPolicy.BlockOptions,
}
// 正在使用此策略的服务