diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-02-26 20:50:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 20:50:07 +0100 |
commit | c2b5b48fc8b57fb97c83ef0ceda72985c81edce4 (patch) | |
tree | 628f682bb0eacd7ee72fe470cccc72a77b2b8737 /example/ndpiReader.c | |
parent | b287d6ec855defe8669449df7e9322c8860b9eab (diff) |
ndpiReader: restore `ndpiReader -x $DOMAIN_NAME` functionality (#2329)
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 1812aa9d5..361cc36a7 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -363,11 +363,14 @@ void ndpiCheckHostStringMatch(char *testChar) { char appBufStr[64]; ndpi_protocol detected_protocol; struct ndpi_detection_module_struct *ndpi_str; + NDPI_PROTOCOL_BITMASK all; if(!testChar) return; ndpi_str = ndpi_init_detection_module(NULL); + NDPI_BITMASK_SET_ALL(all); + ndpi_set_protocol_detection_bitmask2(ndpi_str, &all); ndpi_finalize_initialization(ndpi_str); testRes = ndpi_match_string_subprotocol(ndpi_str, |