aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2023-05-20 15:41:15 +0200
committerGitHub <noreply@github.com>2023-05-20 15:41:15 +0200
commitc97e2d67ffe9d9bd544b9c40856f897d75963606 (patch)
treeadf6b6d115d5e5eee5fc11d977460826e31c3117 /src/lib/ndpi_main.c
parent9004d5c2ca71a9821a2041f0a5e16b4144a66ee7 (diff)
Added scripts to auto generate hostname/SNI *.inc files. (#1984)
* add illegal gambling sites (Belgium) Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c4
1 files changed, 4 insertions, 0 deletions
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++) {