Skip to content

Commit

Permalink
Merge pull request #337 from 6DDUU6/master
Browse files Browse the repository at this point in the history
fix: nil pointer error
  • Loading branch information
Mrs4s committed Jun 10, 2023
2 parents 6352f22 + 190c061 commit dab2c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/internal/network/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dab2c35

Please sign in to comment.