diff options
| author | fengweihao <[email protected]> | 2020-10-12 11:04:35 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2020-10-14 11:40:06 +0800 |
| commit | 40aab0a2984a6b74a9c2aed9c0c59e2c33c54e2e (patch) | |
| tree | 7610fb12d68d26f45be4673bf1f748c944520036 /plugin/business/doh/src/doh.cpp | |
| parent | e16931d7c5ec1faabc90d852c2c9353111de1578 (diff) | |
fqdn服务划分接口适配修改
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
| -rw-r--r-- | plugin/business/doh/src/doh.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp index dfc2eb3..f53f5a7 100644 --- a/plugin/business/doh/src/doh.cpp +++ b/plugin/business/doh/src/doh.cpp @@ -243,6 +243,12 @@ static void doh_maat_scan(const struct tfe_stream *stream, const struct tfe_http TFE_LOG_INFO(g_doh_conf->local_logger, "Scan %s, NO hit host: %s scan ret: %d addr: %s", g_doh_conf->tables[TYPE_HOST].name, host, scan_ret, ctx->addr_string); } + + scan_ret = tfe_scan_fqdn_cat(stream, result, &(ctx->scan_mid), hit_cnt, ctx->thread_id, g_doh_conf->local_logger, g_doh_conf->tables[TYPE_HOST].id); + if( scan_ret > 0) + { + hit_cnt += scan_ret; + } } // scan addr @@ -289,6 +295,11 @@ static void doh_maat_scan(const struct tfe_stream *stream, const struct tfe_http TFE_LOG_INFO(g_doh_conf->local_logger, "Scan %s, NO hit domain: %s scan ret: %d addr: %s", g_doh_conf->tables[TYPE_QNAME].name, qname, scan_ret, ctx->addr_string); } + scan_ret = tfe_scan_fqdn_cat(stream, result, &(ctx->scan_mid), hit_cnt, ctx->thread_id, g_doh_conf->local_logger, g_doh_conf->tables[TYPE_QNAME].id); + if( scan_ret > 0) + { + hit_cnt += scan_ret; + } if (hit_cnt) { |
