diff --git a/connection_logging.go b/connection_logging.go index 85e832b0..65132914 100644 --- a/connection_logging.go +++ b/connection_logging.go @@ -161,7 +161,7 @@ func (c *Conn) logShortHeaderPacket( }, Raw: qlog.RawInfo{ Length: int(size), - PayloadLength: int(pnLen), + PayloadLength: int(size - wire.ShortHeaderLen(destConnID, pnLen)), }, Frames: fs, ECN: toQlogECN(ecn),