From ebd0f9eebc28d7ea83a73114e6b91ad2eedf2d83 Mon Sep 17 00:00:00 2001 From: lns Date: Sat, 20 May 2023 15:04:06 +0200 Subject: Added scripts to auto generate hostname/SNI *.inc files. * add illegal gambling sites (Belgium) Signed-off-by: lns --- 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 6e6853d8f..9fd4ab118 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -71,6 +71,7 @@ #include "inc_generated/ndpi_ms_onedrive_match.c.inc" #include "inc_generated/ndpi_ms_outlook_match.c.inc" #include "inc_generated/ndpi_ms_skype_teams_match.c.inc" +#include "inc_generated/ndpi_gambling_match.c.inc" #include "inc_generated/ndpi_google_match.c.inc" #include "inc_generated/ndpi_google_cloud_match.c.inc" #include "inc_generated/ndpi_crawlers_match.c.inc" @@ -928,6 +929,9 @@ static void init_string_based_protocols(struct ndpi_detection_module_struct *ndp for(i = 0; host_match[i].string_to_match != NULL; i++) ndpi_init_protocol_match(ndpi_str, &host_match[i]); + for(i = 0; ndpi_protocol_gambling_hostname_list[i].string_to_match != NULL; i++) + ndpi_init_protocol_match(ndpi_str, &ndpi_protocol_gambling_hostname_list[i]); + /* ************************ */ for(i = 0; tls_certificate_match[i].string_to_match != NULL; i++) { -- cgit v1.2.3