forked from quic-go/quic-go
only send the client version number until the handshake is complete
fixes #426
This commit is contained in:
@@ -77,8 +77,7 @@ func (p *packetPacker) packPacket(stopWaitingFrame *frames.StopWaitingFrame, lea
|
||||
responsePublicHeader.DiversificationNonce = p.cryptoSetup.DiversificationNonce()
|
||||
}
|
||||
|
||||
// TODO: stop sending version numbers once a version has been negotiated
|
||||
if p.perspective == protocol.PerspectiveClient {
|
||||
if p.perspective == protocol.PerspectiveClient && !p.cryptoSetup.HandshakeComplete() {
|
||||
responsePublicHeader.VersionFlag = true
|
||||
responsePublicHeader.VersionNumber = p.version
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user