correctly parse some ravi packets & ignore zeroes

This commit is contained in:
wish
2023-08-21 21:39:22 +10:00
parent ab81ca9233
commit 192e68ba86
3 changed files with 9 additions and 32 deletions

View File

@@ -28,7 +28,8 @@ func (m *MsgMhfAnnounce) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientCon
m.IPAddress = bf.ReadUint32()
m.Port = bf.ReadUint16()
_ = bf.ReadUint8()
_ = bf.ReadUint16()
_ = bf.ReadUint8()
_ = bf.ReadUint8()
m.StageID = bf.ReadBytes(32)
_ = bf.ReadUint32()
m.Type = bf.ReadUint8()