diff --git a/def.go b/def.go index 037a800..97276f2 100644 --- a/def.go +++ b/def.go @@ -61,10 +61,15 @@ func (p *PacketAdminJoin) Bytes() []byte { p.PLength = uint16(len(p.Password) + len(p.AppName) + len(p.AppVersion) + 3) binary.Write(buf, binary.LittleEndian, p.PLength) + logInfoDebug("len : %d", buf.Len()) binary.Write(buf, binary.LittleEndian, p.PType) + logInfoDebug("len : %d", buf.Len()) buf.WriteString(p.Password) + logInfoDebug("len : %d", buf.Len()) buf.WriteString(p.AppName) + logInfoDebug("len : %d", buf.Len()) buf.WriteString(p.AppVersion) + logInfoDebug("len : %d", buf.Len()) return buf.Bytes() }