Added ndpi_init_detection_module() API preferences
This commit is contained in:
@@ -4169,7 +4169,7 @@ int orginal_main(int argc, char **argv) {
|
||||
analyzeUnitTest();
|
||||
|
||||
gettimeofday(&startup_time, NULL);
|
||||
ndpi_info_mod = ndpi_init_detection_module();
|
||||
ndpi_info_mod = ndpi_init_detection_module(0 /* Don't skip tor hosts */);
|
||||
|
||||
if(ndpi_info_mod == NULL) return -1;
|
||||
|
||||
|
||||
@@ -413,7 +413,7 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref
|
||||
set_ndpi_flow_malloc(NULL), set_ndpi_flow_free(NULL);
|
||||
|
||||
/* TODO: just needed here to init ndpi malloc wrapper */
|
||||
module = ndpi_init_detection_module();
|
||||
module = ndpi_init_detection_module(ndpi_no_prefs);
|
||||
|
||||
if(module == NULL) {
|
||||
NDPI_LOG(0, NULL, NDPI_LOG_ERROR, "global structure initialization failed\n");
|
||||
|
||||
Reference in New Issue
Block a user