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

This commit is contained in:
刘祥超
2021-06-12 10:53:59 +08:00
parent bb2d2c5c86
commit 01eb22a0fe

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,