Merged new and old version of ndpi_domain_classify.c code

This commit is contained in:
Luca Deri
2023-09-02 19:27:19 +02:00
parent 1d480c18e3
commit f0dc3347ec
2 changed files with 397 additions and 0 deletions
+3
View File
@@ -4206,6 +4206,9 @@ int ndpi_load_category_file(struct ndpi_detection_module_struct *ndpi_str,
while((line[len] == '\n') || (line[len] == '\r'))
line[len--] = '\0';
while((line[0] == '-') || (line[0] == '.'))
line++;
if(ndpi_load_category(ndpi_str, line, category_id, NULL) > 0)
num_loaded++;
}