Merged new and old version of ndpi_domain_classify.c code
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user