ndpiReader: restore ndpiReader -x $DOMAIN_NAME functionality (#2329)

This commit is contained in:
Ivan Nardi
2024-02-26 20:50:07 +01:00
committed by GitHub
parent b287d6ec85
commit c2b5b48fc8
+3
View File
@@ -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,