diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2024-01-09 21:16:46 +0100 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-01-18 10:21:24 +0100 |
commit | 1289951b322c66295cdb03b3c26a6cdd24cc160d (patch) | |
tree | 7259e1f307b6939892152495cb9ecccfcafb5501 /example/ndpiReader.c | |
parent | 311d8b6daed7703678c25ed4b7249db1c6bbc556 (diff) |
config: remove `ndpi_set_detection_preferences()`
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 7a614c219..742e442fc 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2795,14 +2795,14 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) { cfgs[i].proto, cfgs[i].param, cfgs[i].value, rc); } + if(enable_doh_dot_detection) + ndpi_set_config(ndpi_thread_info[thread_id].workflow->ndpi_struct, "tls", "application_blocks_tracking.enable", "1"); + ret = ndpi_finalize_initialization(ndpi_thread_info[thread_id].workflow->ndpi_struct); if(ret != 0) { fprintf(stderr, "Error ndpi_finalize_initialization: %d\n", ret); exit(-1); } - - if(enable_doh_dot_detection) - ndpi_set_detection_preferences(ndpi_thread_info[thread_id].workflow->ndpi_struct, ndpi_pref_enable_tls_block_dissection, 1); } /* *********************************************** */ |