WAF的出站规则支持请求相关参数

This commit is contained in:
GoEdgeLab
2021-06-12 10:53:59 +08:00
parent 9c7426ab06
commit 8d85fe6b9b

View File

@@ -23,7 +23,7 @@ func (this *CreateRulePopupAction) RunGet(params struct {
// check points
checkpointList := []maps.Map{}
for _, checkpoint := range firewallconfigs.AllCheckpoints {
if (params.Type == "inbound" && checkpoint.IsRequest) || (params.Type == "outbound" && !checkpoint.IsRequest) {
if (params.Type == "inbound" && checkpoint.IsRequest) || params.Type == "outbound" {
checkpointList = append(checkpointList, maps.Map{
"name": checkpoint.Name,
"prefix": checkpoint.Prefix,