diff options
| author | liuxueli <[email protected]> | 2020-07-06 14:09:41 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-07-06 14:09:41 +0800 |
| commit | 1a4a1f38e521071092400f437686c57356f66e14 (patch) | |
| tree | 56fbaffa28644081f42d993cb095ac0551cf2942 | |
| parent | dde53a5200a0f692875bbd03c815ec097a0052a2 (diff) | |
适配mail识别函数mail_protocol_identify_by_first_payloadv3.0.1.20.07
| -rw-r--r-- | src/tsg_entry.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 7128002..10382af 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -42,7 +42,7 @@ static __attribute__((__used__)) const char * GIT_VERSION_UNKNOWN = NULL; #endif -char TSG_MASTER_VERSION_20200624=0; +char TSG_MASTER_VERSION_20200706=0; const char *tsg_conffile="tsgconf/main.conf"; g_tsg_para_t g_tsg_para; @@ -500,8 +500,7 @@ static int identify_application_protocol(struct streaminfo *a_stream, struct _id } //mail - - ret=mail_protocol_identify(a_stream); + ret=mail_protocol_identify_by_first_payload(a_stream,(char *)a_stream->ptcpdetail->pdata, a_stream->ptcpdetail->datalen, a_stream->threadnum); if(ret>=SMTP_PROTOCOL&& ret<=IMAP_PROTOCOL) { identify_info->proto=PROTO_MAIL; |
