server端过滤无需转发的消息

This commit is contained in:
lwch
2021-08-25 10:46:59 +08:00
parent 2ddeb9e19c
commit c485cc977e

View File

@@ -142,6 +142,8 @@ func (h *Handler) onMessage(from *client, conn *network.Conn, msg *network.Msg)
linkID = msg.GetXDisconnect().GetId()
case network.Msg_forward:
linkID = msg.GetXData().GetLid()
default:
return
}
cli := h.getClient(linkID, to)
if cli == nil {