forked from quic-go/quic-go
pad all Initial packets sent by the client
This commit is contained in:
@@ -429,7 +429,7 @@ func (p *packetPacker) writeAndSealPacket(
|
||||
raw := *getPacketBuffer()
|
||||
buffer := bytes.NewBuffer(raw[:0])
|
||||
|
||||
addPadding := p.perspective == protocol.PerspectiveClient && header.Type == protocol.PacketTypeInitial && !p.hasSentPacket
|
||||
addPadding := p.perspective == protocol.PerspectiveClient && header.Type == protocol.PacketTypeInitial
|
||||
|
||||
// the length is only needed for Long Headers
|
||||
if header.IsLongHeader {
|
||||
|
||||
Reference in New Issue
Block a user