forked from quic-go/quic-go
drop support for draft-29 (#3903)
This commit is contained in:
@@ -108,7 +108,7 @@ func Is0RTTPacket(b []byte) bool {
|
||||
version := protocol.VersionNumber(binary.BigEndian.Uint32(b[1:5]))
|
||||
//nolint:exhaustive // We only need to test QUIC versions that we support.
|
||||
switch version {
|
||||
case protocol.Version1, protocol.VersionDraft29:
|
||||
case protocol.Version1:
|
||||
return b[0]>>4&0b11 == 0b01
|
||||
case protocol.Version2:
|
||||
return b[0]>>4&0b11 == 0b10
|
||||
|
||||
Reference in New Issue
Block a user