test
This commit is contained in:
1 parent
6ddec0775c
commit
0a56868b9f
1 file changed
+2
-2
@@ -60,8 +60,8 @@ func (p *PacketAdminJoin) Bytes() []byte {
|
||||
buf := new(bytes.Buffer)
|
||||
p.PLength = uint16(len(p.Password) + len(p.AppName) + len(p.AppVersion) + 3)
|
||||
|
||||
buf.WriteByte(p.PLength)
|
||||
buf.WriteByte(p.PType)
|
||||
binary.Write(buf, binary.LittleEndian, p.PLength)
|
||||
binary.Write(buf, binary.LittleEndian, p.PType)
|
||||
buf.WriteString(p.Password)
|
||||
buf.WriteString(p.AppName)
|
||||
buf.WriteString(p.AppVersion)
|
||||
|
||||
Reference in new issue
Block a user