analyzer: make http3/quic handling more reliable
Some checks failed
Quality check / Tests (push) Has been cancelled
Quality check / Static analysis (push) Has been cancelled

This commit is contained in:
2026-02-11 15:53:26 +05:30
parent 43cb4755d0
commit a4baa1b1a3
2 changed files with 13 additions and 3 deletions

View File

@@ -47,9 +47,6 @@ func parseLongHeader(b *bytes.Reader) (*Header, error) {
return nil, err
}
h.Version = ver
if h.Version != 0 && typeByte&0x40 == 0 {
return nil, errors.New("not a QUIC packet")
}
destConnIDLen, err := b.ReadByte()
if err != nil {
return nil, err