This commit is contained in:
shoopea 2020-06-14 17:16:26 +02:00
parent 513e7e4be8
commit c70d1daf07

2
def.go
View File

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