test
This commit is contained in:
parent
5447c59d81
commit
1ea23d65f3
2
def.go
2
def.go
@ -58,7 +58,7 @@ type PacketAdminJoin struct {
|
||||
|
||||
func (p *PacketAdminJoin) Bytes() []byte {
|
||||
buf := new(bytes.Buffer)
|
||||
p.PLength = uint16(len(p.Password) + len(p.AppName) + len(p.AppVersion) + 3)
|
||||
p.PLength = uint16(len(p.Password) + len(p.AppName) + len(p.AppVersion) + 6)
|
||||
|
||||
binary.Write(buf, binary.LittleEndian, p.PLength)
|
||||
logInfoDebug("len : %d", buf.Len())
|
||||
|
Loading…
Reference in New Issue
Block a user