From fc76b1eeab72de04ab6bdb471fd20b36b357d9ec Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 14 Jun 2020 22:17:17 +0200 Subject: [PATCH] test --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7adb874..ec34cc5 100644 --- a/main.go +++ b/main.go @@ -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)