diff options
author | lns <matzeton@googlemail.com> | 2022-08-02 18:41:38 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-08-03 11:04:52 +0200 |
commit | c474b345c2d7129a84739b5d8a6b41d4493d730d (patch) | |
tree | 1f617f31643287d468f6f812ec44737a968e0c9b /example/reader_util.c | |
parent | b3e722e5a8164900a0bfb510ebaafaf5080c4511 (diff) |
Add Discord dissector.add/discord-dissector
* fixed RiotGames false positive
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index 7ccaba1fc..a7c970de7 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1085,6 +1085,13 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl ndpi_snprintf(flow->softether.fqdn, sizeof(flow->softether.fqdn), "%s", flow->ndpi_flow->protos.softether.fqdn); } + /* DISCORD */ + else if(is_ndpi_proto(flow, NDPI_PROTOCOL_DISCORD) && !is_ndpi_proto(flow, NDPI_PROTOCOL_TLS) && + flow->ndpi_flow->protos.discord.client_ip[0] != '\0') { + flow->info_type = INFO_GENERIC; + ndpi_snprintf(flow->info, sizeof(flow->info), "Client IP: %s", + flow->ndpi_flow->protos.discord.client_ip); + } /* DNS */ else if(is_ndpi_proto(flow, NDPI_PROTOCOL_DNS)) { if(flow->ndpi_flow->protos.dns.rsp_type == 0x1) |