From 0809956e5f9ebbe11d5e11bebaf0c390eb993464 Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 20 Jan 2021 09:53:30 +0100 Subject: Rewored UPnP protocol that in essence was WSD hence it has been renamed Cleaned up TLS code for DTLS detection by defining a new DTLS protocol --- src/lib/protocols/stun.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/protocols/stun.c') diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index cc1836a9b..cf7a4d0a4 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -202,9 +202,8 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct * total_len = ntohs(*((u_int16_t*) &packet->payload[11])) + 13; if(payload_length == total_len) { - /* This is DTLS and the only protocol we know behaves like this is signal */ - flow->guessed_host_protocol_id = NDPI_PROTOCOL_SIGNAL; - return(NDPI_IS_STUN); + flow->guessed_host_protocol_id = NDPI_PROTOCOL_DTLS; + return(NDPI_IS_NOT_STUN); } } } -- cgit v1.2.3