Skip to content

Commit

Permalink
ndpiReader: restore ndpiReader -x $DOMAIN_NAME functionality (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNardi authored Feb 26, 2024
1 parent b287d6e commit c2b5b48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c2b5b48

Please sign in to comment.