config: allow configuration of guessing algorithms

This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent 6c85f10cd5
commit 0712d496fe
18 changed files with 140 additions and 23 deletions
+1 -2
View File
@@ -57,10 +57,9 @@ class NDPI(object):
app_protocol=p.app_protocol,
category=p.category)
def giveup(self, flow, enable_guess=True):
def giveup(self, flow):
p = lib.ndpi_detection_giveup(self._detection_module,
flow.C,
enable_guess,
ffi.new("uint8_t*", 0))
return ndpi_protocol(C=p,
master_protocol=p.master_protocol,