diff --git a/client/internal/network/transport.go b/client/internal/network/transport.go index 004ed758..f5a017c7 100644 --- a/client/internal/network/transport.go +++ b/client/internal/network/transport.go @@ -50,7 +50,7 @@ func (t *Transport) packBody(req *Request, w *binary.Writer) { w.WriteUInt32(uint32(len(secSign) + 4)) w.Write(secSign) } - if wrapper.AllowSignSendMsg() && req.CommandName == "MessageSvc.PbSendMsg" { + if wrapper.AllowSignSendMsg != nil && wrapper.AllowSignSendMsg() && req.CommandName == "MessageSvc.PbSendMsg" { secSign := t.PackSecSign(req) w.WriteUInt32(uint32(len(secSign) + 4)) w.Write(secSign)