mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-27 05:00:25 +08:00
WAF的出站规则支持请求相关参数
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user