forked from quic-go/quic-go
implement the recent changes to the version negotiation packet
This commit is contained in:
@@ -286,10 +286,8 @@ func (c *client) handlePacket(remoteAddr net.Addr, packet []byte) {
|
||||
return
|
||||
}
|
||||
|
||||
isVersionNegotiationPacket := hdr.VersionFlag /* gQUIC Version Negotiation Packet */ || hdr.Type == protocol.PacketTypeVersionNegotiation /* IETF draft style Version Negotiation Packet */
|
||||
|
||||
// handle Version Negotiation Packets
|
||||
if isVersionNegotiationPacket {
|
||||
if hdr.IsVersionNegotiation {
|
||||
// ignore delayed / duplicated version negotiation packets
|
||||
if c.receivedVersionNegotiationPacket || c.versionNegotiated {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user