test
This commit is contained in:
parent
513e7e4be8
commit
c70d1daf07
2
def.go
2
def.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user