aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 3efeaa595..46f19614f 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -85,6 +85,7 @@ u_int8_t enable_doh_dot_detection = 0;
extern bool do_load_lists;
extern int malloc_size_stats;
extern int monitoring_enabled;
+extern char *_protocolsDirPath;
/* ****************************************************** */
@@ -443,6 +444,9 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref
return NULL;
}
+ if(_protocolsDirPath != NULL)
+ ndpi_load_protocols_dir(module, _protocolsDirPath);
+
workflow = ndpi_calloc(1, sizeof(struct ndpi_workflow));
if(workflow == NULL) {
LOG(NDPI_LOG_ERROR, "global structure initialization failed\n");