This commit is contained in:
shoopea 2020-06-14 17:14:08 +02:00
parent e97c5ee3e5
commit 513e7e4be8

2
def.go
View File

@ -58,7 +58,7 @@ type PacketAdminJoin struct {
func (p *PacketAdminJoin) Bytes() []byte {
buf := new(bytes.Buffer)
enc := gob.NewEncoder(&buf)
enc := gob.NewEncoder(*buf)
p.PLength = uint16(len(p.Password) + len(p.AppName) + len(p.AppVersion) + 3)
err := enc.Encode(p)