python: fix compilation

This commit is contained in:
Ivan Nardi 2026-08-25 18:10:46 +02:00
parent 3eb6e65fbc
commit 62c77e4923

View file

@ -32,7 +32,7 @@ class NDPI(object):
"_detection_module")
def __init__(self):
self._detection_module = lib.ndpi_init_detection_module(ffi.NULL, lib.NDPI_LICENSE_NON_COMMERCIAL_LGPL)
self._detection_module = lib.ndpi_init_detection_module(ffi.NULL, lib.NDPI_LICENSE_NOT_FOR_PROFIT_LGPL)
if self._detection_module == ffi.NULL:
raise MemoryError("Unable to instantiate NDPI object")
lib.ndpi_py_setup_detection_module(self._detection_module)