diff options
author | lns <matzeton@googlemail.com> | 2022-04-21 00:49:25 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-04-21 14:17:06 +0200 |
commit | 759ab0860b0fbf676f7a95ecd209a2d576dac053 (patch) | |
tree | bda68d6f8b326a8fc884067da22c5ad33c064830 /example/reader_util.c | |
parent | c1d46ebc4e2d99f253ac7141164e6b5f497d6677 (diff) |
Improved whatsapp detection/dissection.improved/whatsapp
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 730d14625..278ec63d7 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1118,7 +1118,9 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl ndpi_snprintf(flow->http.request_content_type, sizeof(flow->http.request_content_type), "%s", flow->ndpi_flow->http.request_content_type ? flow->ndpi_flow->http.request_content_type : ""); ndpi_snprintf(flow->http.user_agent, sizeof(flow->http.user_agent), "%s", flow->ndpi_flow->http.user_agent ? flow->ndpi_flow->http.user_agent : ""); } - } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_SSDP)) { + } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_SSDP) || + (flow->detected_protocol.master_protocol != NDPI_PROTOCOL_TLS && + is_ndpi_proto(flow, NDPI_PROTOCOL_WHATSAPP))) { ndpi_snprintf(flow->http.user_agent, sizeof(flow->http.user_agent), "%s", flow->ndpi_flow->http.user_agent ? flow->ndpi_flow->http.user_agent : ""); } else if(is_ndpi_proto(flow, NDPI_PROTOCOL_TELNET)) { if(flow->ndpi_flow->protos.telnet.username[0] != '\0') |