diff options
| author | fengweihao <[email protected]> | 2024-08-16 11:57:20 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2024-08-16 11:57:20 +0800 |
| commit | c2c20d33108dbe35e4ee1f98b7ed956d27cfc710 (patch) | |
| tree | a67d6cbfa075b1a7e1f97b2ab52d956949a81b67 /plugin/business/tsg-http/src/tsg_http.cpp | |
| parent | 88e6b0ae9bee35e5b39c6cf25a7f53c0217c584f (diff) | |
TSG-22093 Manipulation支持Library Tag相关策略的扫描与日志发送
Diffstat (limited to 'plugin/business/tsg-http/src/tsg_http.cpp')
| -rw-r--r-- | plugin/business/tsg-http/src/tsg_http.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp index 9a684ad..3a926d0 100644 --- a/plugin/business/tsg-http/src/tsg_http.cpp +++ b/plugin/business/tsg-http/src/tsg_http.cpp @@ -2720,6 +2720,12 @@ enum proxy_action http_scan(const struct tfe_http_session * session, enum tfe_ht { hit_cnt += n_hit_result; } + + scan_ret = tfe_scan_fqdn_tags(stream, result, ctx->scan_mid, hit_cnt, g_proxy_rt->scan_table_id[PXY_CTRL_HTTP_FQDN], g_proxy_rt->local_logger); + if (scan_ret == MAAT_SCAN_HIT) + { + hit_cnt += n_hit_result; + } } const char * str_url = session->req->req_spec.url; @@ -2915,19 +2921,15 @@ void proxy_on_http_begin(const struct tfe_stream *stream, const struct tfe_http_ scan_ret = tfe_scan_subscribe_id(stream, result, ctx->scan_mid, hit_cnt, g_proxy_rt->local_logger); if(scan_ret>0) { - hit_cnt+=scan_ret; - } - scan_ret = tfe_scan_ip_location(stream, result, ctx->scan_mid, hit_cnt, g_proxy_rt->local_logger); - if(scan_ret>0) - { - hit_cnt+=scan_ret; + hit_cnt += scan_ret; } - scan_ret = tfe_scan_ip_asn(stream, result, ctx->scan_mid, hit_cnt, g_proxy_rt->local_logger); + scan_ret = tfe_scan_ip_tags(stream, result, ctx->scan_mid, hit_cnt, g_proxy_rt->local_logger); if(scan_ret>0) { - hit_cnt+=scan_ret; + hit_cnt += scan_ret; } + long long app_id=67; scan_ret = tfe_scan_app_id(result, ctx->scan_mid, hit_cnt, app_id, g_proxy_rt->scan_table_id[PXY_CTRL_APP_ID]); if(scan_ret > 0) |
