bugfix: 上报命中策略时过滤policy_id=1的内置策略

This commit is contained in:
fengweihao
2021-09-28 10:21:13 +08:00
parent 72312b0283
commit 63ffd38156

View File

@@ -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++) 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; continue;
} }