diff --git a/main.go b/main.go index 1c80b5c..664c2f1 100644 --- a/main.go +++ b/main.go @@ -62,6 +62,9 @@ func main() { } logInfoDebug("Packet fully read : len : %d / type : %d", p.PLength, p.PType) + + handlePacket(p, b[:p.PLength]) + c := make([]byte, 0xFFFF) copy(c, b[p.PLength:]) b = c