Skip to content

Commit

Permalink
Handle TLSv1.2 record version handshakes (16 03 03). #353
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed May 30, 2024
1 parent 4a82fd4 commit 4c846c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4c846c7

Please sign in to comment.