summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-09-11 17:49:14 +0800
committerfengweihao <[email protected]>2024-09-11 17:49:14 +0800
commit1b917ef5ae149cc7bd966d88465769fb7b25ce72 (patch)
treeed70049ae5b43e634ca60f45dd8e8e035fba5c80 /plugin/business/doh/src
parent268b80c3de6727ba0d82af3df433091b2225142e (diff)
TSG-22512 修复Manipulation配置Server FQDN Tags策略无法命中v4.10.2-20240911
TSG-22504 Manipulation日志输出Client Country,server_country字段 TSG-22374 修复Manipulation日志字段中的http版本号
Diffstat (limited to 'plugin/business/doh/src')
-rw-r--r--plugin/business/doh/src/doh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp
index a2a28b2..f0370ed 100644
--- a/plugin/business/doh/src/doh.cpp
+++ b/plugin/business/doh/src/doh.cpp
@@ -308,9 +308,9 @@ static void doh_maat_scan(const struct tfe_stream *stream, const struct tfe_http
}
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)
+ if (scan_ret > 0)
{
- hit_cnt += n_hit_result;
+ hit_cnt += scan_ret;
}
}