This commit is contained in:
shoopea 2020-06-14 17:34:19 +02:00
parent c8b3f3e826
commit cae2cd830c

3
def.go
View File

@ -65,10 +65,13 @@ func (p *PacketAdminJoin) Bytes() []byte {
binary.Write(buf, binary.LittleEndian, p.PType) binary.Write(buf, binary.LittleEndian, p.PType)
logInfoDebug("len : %d", buf.Len()) logInfoDebug("len : %d", buf.Len())
buf.WriteString(p.Password) buf.WriteString(p.Password)
buf.WriteByte(0)
logInfoDebug("len : %d", buf.Len()) logInfoDebug("len : %d", buf.Len())
buf.WriteString(p.AppName) buf.WriteString(p.AppName)
buf.WriteByte(0)
logInfoDebug("len : %d", buf.Len()) logInfoDebug("len : %d", buf.Len())
buf.WriteString(p.AppVersion) buf.WriteString(p.AppVersion)
buf.WriteByte(0)
logInfoDebug("len : %d", buf.Len()) logInfoDebug("len : %d", buf.Len())
return buf.Bytes() return buf.Bytes()