Always set num chunks to 0 in control packets
This is what the reference implementation expects. Otherwise it tries to call FetchChunk and fails to parse the header.
This commit is contained in:
parent
98c01516e5
commit
60f9e182a8
|
@ -305,6 +305,7 @@ func (packet *Packet) Pack(connection *Session) []byte {
|
||||||
Resend: false,
|
Resend: false,
|
||||||
Control: true,
|
Control: true,
|
||||||
}
|
}
|
||||||
|
packet.Header.NumChunks = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if packet.Header.Flags.Compression {
|
if packet.Header.Flags.Compression {
|
||||||
|
|
Loading…
Reference in a new issue