改进WAF策略的区域封禁

This commit is contained in:
GoEdgeLab
2023-07-07 15:28:29 +08:00
parent 5f69761ac4
commit aeb0ca0b8f
14 changed files with 383 additions and 356 deletions

View File

@@ -41,6 +41,7 @@ func (this *ProvincesAction) RunGet(params struct {
this.NotFound("firewallPolicy", params.FirewallPolicyId)
return
}
var deniedProvinceIds = []int64{}
var allowedProvinceIds = []int64{}
if policyConfig.Inbound != nil && policyConfig.Inbound.Region != nil {