Improved Discord pattern. (#1707)

Signed-off-by: lns <matzeton@googlemail.com>

Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
Toni
2022-08-10 21:00:11 +02:00
committed by GitHub
parent 540848c254
commit 5915bc8828
3 changed files with 41 additions and 41 deletions
+1 -2
View File
@@ -49,8 +49,7 @@ void ndpi_search_discord(struct ndpi_detection_module_struct *ndpi_struct,
return;
}
if (packet->payload_packet_len == 74 &&
ntohs(get_u_int16_t(packet->payload, 6)) == 0xace3)
if (packet->payload_packet_len == 74)
{
if (flow->packet_counter == 1 &&
ntohl(get_u_int32_t(packet->payload, 0)) == 0x00010046)