mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-06 03:45:32 +00:00
commit
db16a987c5
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ void ndpi_search_nats_tcp(struct ndpi_detection_module_struct *ndpi_struct,
|
|||
if(!match) continue;
|
||||
|
||||
if(ndpi_strnstr((const char *)match, "\r\n",
|
||||
flow->packet.payload_packet_len - ((unsigned long)flow->packet.payload - (unsigned long)match)) != NULL) {
|
||||
flow->packet.payload_packet_len - ((unsigned long)match - (unsigned long)flow->packet.payload)) != NULL) {
|
||||
NDPI_LOG_INFO(ndpi_struct, "found NATS\n");
|
||||
|
||||
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_NATS, NDPI_PROTOCOL_UNKNOWN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue