From 4c846c712dfedffd1e28405af4240ca6932414a3 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 30 May 2024 21:02:16 +0300 Subject: [PATCH] Handle TLSv1.2 record version handshakes (16 03 03). #353 --- src/goodbyedpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index f80581f7..9c6b6b0e 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -1129,7 +1129,7 @@ int main(int argc, char *argv[]) { * But if the packet is more than 2 bytes, check ClientHello byte. */ if ((packet_dataLen == 2 && memcmp(packet_data, "\x16\x03", 2) == 0) || - (packet_dataLen >= 3 && memcmp(packet_data, "\x16\x03\x01", 3) == 0)) + (packet_dataLen >= 3 && ( memcmp(packet_data, "\x16\x03\x01", 3) == 0 || memcmp(packet_data, "\x16\x03\x03", 3) == 0 ))) { if (do_blacklist) { sni_ok = extract_sni(packet_data, packet_dataLen,