Improved BitTorrent guess

This commit is contained in:
Luca Deri
2021-12-26 19:41:35 +01:00
parent c4ac53a03f
commit d72a40a0fc
+10
View File
@@ -6534,6 +6534,16 @@ ndpi_protocol ndpi_guess_undetected_protocol(struct ndpi_detection_module_struct
}
}
if((flow != NULL)
&& ndpi_search_into_bittorrent_cache(ndpi_str, flow,
flow->saddr, flow->sport,
flow->daddr, flow->dport)) {
/* This looks like BitTorrent */
ret.app_protocol = NDPI_PROTOCOL_BITTORRENT;
ret.category = ndpi_get_proto_category(ndpi_str, ret);
return(ret);
}
check_guessed_skype:
addr.s_addr = htonl(shost);
if(ndpi_network_ptree_match(ndpi_str, &addr) == NDPI_PROTOCOL_SKYPE_TEAMS) {