unitas/net-analyzer/ntop/files/load_protos_file.patch

18 lines
658 B
Diff

diff -Naur ntop-5.0.2-orig/globals-core.c ntop-5.0.2/globals-core.c
--- ntop-5.0.2-orig/globals-core.c 2014-05-20 09:43:55.000000000 +0200
+++ ntop-5.0.2/globals-core.c 2015-07-30 15:18:24.852651184 +0200
@@ -549,13 +549,11 @@
ndpi_set_protocol_detection_bitmask2(myGlobals.device[deviceId].l7.l7handler, &all);
if(myGlobals.runningPref.protoSpecs != NULL) {
- if(deviceId == 0) {
traceEvent(CONST_TRACE_INFO, "Loading nDPI protocol/port mapping from %s",
myGlobals.runningPref.protoSpecs);
ndpi_load_protocols_file(myGlobals.device[deviceId].l7.l7handler,
myGlobals.runningPref.protoSpecs);
- }
}
}