bugfix: 上报命中策略时过滤policy_id=1的内置策略
This commit is contained in:
@@ -766,7 +766,8 @@ int http_hit_policy_list(enum verify_policy_type policy_type, size_t hit_cnt, cJ
|
||||
{
|
||||
for (i = 0; i < ctx->hit_cnt; i++)
|
||||
{
|
||||
if(http_hit_policy_match(result_config, i, ctx->result[i].config_id))
|
||||
if(http_hit_policy_match(result_config, i, ctx->result[i].config_id) ||
|
||||
ctx->result[i].config_id == 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user