修复添加FQDN后,未对命中策略进行偏移,造成策略优先级存在问题

This commit is contained in:
fengweihao
2019-08-26 16:35:34 +08:00
parent 0b77bc0fc8
commit 4810ef66c4

View File

@@ -1919,7 +1919,7 @@ enum pangu_action http_scan(const struct tfe_http_session * session, enum tfe_ht
int str_url_length = (int) (strlen(session->req->req_spec.url));
scan_ret = Maat_full_scan_string(g_pangu_rt->maat, g_pangu_rt->scan_table_id[PXY_CTRL_HTTP_URL],
CHARSET_UTF8, str_url, str_url_length, result, NULL, MAX_SCAN_RESULT, &(ctx->scan_mid), ctx->thread_id);
CHARSET_UTF8, str_url, str_url_length, result + hit_cnt, NULL, MAX_SCAN_RESULT - hit_cnt, &(ctx->scan_mid), ctx->thread_id);
if (scan_ret > 0)
{