实现subscribe_id功能

This commit is contained in:
liuxueli
2019-12-11 15:13:27 +08:00
parent f34f50c114
commit f7c3d2fcf7
3 changed files with 219 additions and 38 deletions

View File

@@ -14,7 +14,7 @@
char TSG_MASTER_VERSION_20191129=0;
char TSG_MASTER_VERSION_20191211=0;
const char *tsg_conffile="tsgconf/main.conf";
g_tsg_para_t g_tsg_para;
@@ -182,16 +182,16 @@ extern "C" char TSG_MASTER_TCP_ENTRY(struct streaminfo *a_tcp, void **pme, int t
printaddr(&a_tcp->addr, thread_seq)
);
hit_num+=ret;
hit_num+=ret;
identify_flag=1;
}
else
{
MESA_handle_runtime_log(g_tsg_para.logger,
RLOG_LV_DEBUG,
RLOG_LV_DEBUG,
"SCAN_FQDN",
"Not hit %s: %s stream_dir: %d addr: %s",
(ret==-1) ? "NULL" : ((identify_info.proto==PROTO_HTTP) ? "host" : "sni"),
(ret==-1) ? "NULL" : identify_info.domain,
a_tcp->dir,