aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/discord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/protocols/discord.c')
-rw-r--r--src/lib/protocols/discord.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/protocols/discord.c b/src/lib/protocols/discord.c
index 36ba8274e..eede88b86 100644
--- a/src/lib/protocols/discord.c
+++ b/src/lib/protocols/discord.c
@@ -70,7 +70,8 @@ void ndpi_search_discord(struct ndpi_detection_module_struct *ndpi_struct,
}
}
- NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
+ if (flow->packet_counter >= 5)
+ NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
}
void init_discord_dissector(struct ndpi_detection_module_struct *ndpi_struct,