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/doh/src/doh.cpp | |
| parent | 88e6b0ae9bee35e5b39c6cf25a7f53c0217c584f (diff) | |
TSG-22093 Manipulation支持Library Tag相关策略的扫描与日志发送
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
| -rw-r--r-- | plugin/business/doh/src/doh.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp index f51e9ce..177012d 100644 --- a/plugin/business/doh/src/doh.cpp +++ b/plugin/business/doh/src/doh.cpp @@ -277,14 +277,8 @@ static void doh_maat_scan(const struct tfe_stream *stream, const struct tfe_http hit_cnt += scan_ret; } - scan_ret = tfe_scan_ip_location(stream, result, ctx->scan_mid, hit_cnt, g_doh_conf->local_logger); - if (scan_ret > 0) - { - hit_cnt += scan_ret; - } - - scan_ret = tfe_scan_ip_asn(stream, result, ctx->scan_mid, hit_cnt, g_doh_conf->local_logger); - if (scan_ret > 0) + scan_ret = tfe_scan_ip_tags(stream, result, ctx->scan_mid, hit_cnt, g_doh_conf->local_logger); + if(scan_ret>0) { hit_cnt += scan_ret; } @@ -312,6 +306,12 @@ static void doh_maat_scan(const struct tfe_stream *stream, const struct tfe_http { hit_cnt += n_hit_result; } + + scan_ret = tfe_scan_fqdn_tags(stream, result, ctx->scan_mid, hit_cnt, g_doh_conf->tables[TYPE_HOST].id, g_doh_conf->local_logger); + if (scan_ret == MAAT_SCAN_HIT) + { + hit_cnt += n_hit_result; + } } // scan addr |
