test
This commit is contained in:
parent
0a56868b9f
commit
c8b3f3e826
5
def.go
5
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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user