Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-14 06:13:09 +00:00

nfqws2: detect incoming quic_initial (w/o decryption)

This commit is contained in:
bol-van
2025-12-28 17:12:18 +03:00
parent 173dcd47d1
commit fb962df188

View File

@@ -1330,8 +1330,8 @@ bool IsQUICInitial(const uint8_t *data, size_t len)
uint64_t offset=5, sz;
// DCID. must be present
if (!data[offset] || data[offset] > QUIC_MAX_CID_LENGTH) return false;
// DCID
if (data[offset] > QUIC_MAX_CID_LENGTH) return false;
offset += 1 + data[offset];
// SCID