From 879cec94b2e28c2b1a0285a7c56b6c7ff4f0e75d Mon Sep 17 00:00:00 2001 From: Luca Deri <deri@ntop.org> Date: Tue, 21 Jul 2020 12:06:34 +0200 Subject: User agent detection improvements --- src/lib/ndpi_main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index bd986f986..b2f294c0b 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6636,6 +6636,10 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str, num_bigram_checks++; +#ifdef DGA_DEBUG + printf("-> Checking %c%c\n", word[i], word[i+1]); +#endif + if(ndpi_match_bigram(ndpi_str, &ndpi_str->bigrams_automa, &word[i])) { num_found++; } else { -- cgit v1.2.3