Commented old code (see https://github.com/ntop/nDPI/pull/1425)
This commit is contained in:
@@ -5746,6 +5746,15 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
|
|||||||
ret = ndpi_detection_giveup(ndpi_str, flow, 0, &protocol_was_guessed);
|
ret = ndpi_detection_giveup(ndpi_str, flow, 0, &protocol_was_guessed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* See https://github.com/ntop/nDPI/pull/1425 */
|
||||||
|
if((ret.master_protocol == NDPI_PROTOCOL_UNKNOWN) && (ret.app_protocol != NDPI_PROTOCOL_UNKNOWN) &&
|
||||||
|
(flow->guessed_host_protocol_id != NDPI_PROTOCOL_UNKNOWN)) {
|
||||||
|
ret.master_protocol = ret.app_protocol;
|
||||||
|
ret.app_protocol = flow->guessed_host_protocol_id;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if((!flow->risk_checked)
|
if((!flow->risk_checked)
|
||||||
&& ((ret.master_protocol != NDPI_PROTOCOL_UNKNOWN) || (ret.app_protocol != NDPI_PROTOCOL_UNKNOWN))
|
&& ((ret.master_protocol != NDPI_PROTOCOL_UNKNOWN) || (ret.app_protocol != NDPI_PROTOCOL_UNKNOWN))
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user