This commit is contained in:
shoopea 2020-06-14 22:17:17 +02:00
parent 856d7c4b4e
commit fc76b1eeab

View File

@ -26,10 +26,10 @@ func main() {
p := Packet{}
b, err := r.ReadByte()
logErrorDebug(err, "conn.ReadByte")
p.PLength = uint8(b) << 8
p.PLength = uint16(b) << 8
b, err = r.ReadByte()
logErrorDebug(err, "conn.ReadByte")
p.PLength += uint8(b)
p.PLength += uint16(b)
b, err = r.ReadByte()
logErrorDebug(err, "conn.ReadByte")
p.PType = uint8(b)