summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2021-05-12 16:34:00 +0800
committerliuxueli <[email protected]>2021-05-12 16:34:00 +0800
commitaa6ce9d57874f54d4fa8c20ff719cdcffd86048c (patch)
tree3da82bceb7f10e40270b60570ad0d26926c1164a
parentc2a432dbcc3f82f0ca232b5b1bcf392920616bfb (diff)
支持拼接多个基础协议v4.1.3
-rw-r--r--src/tsg_send_log.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp
index 5a304f1..dd80840 100644
--- a/src/tsg_send_log.cpp
+++ b/src/tsg_send_log.cpp
@@ -353,6 +353,11 @@ static int get_l7_protocol(struct app_identify_result *result, char *protocol_li
name=tsg_l7_protocol_id2name(result->app_id[i]);
if(name!=NULL)
{
+ if(i>0 && offset>0 && (protocol_list_len-offset)>0)
+ {
+ protocol_list[offset]='.';
+ offset++;
+ }
offset+=snprintf(protocol_list+offset, protocol_list_len-offset, "%s", name);
}
}