mirror of
https://github.com/lwch/natpass
synced 2025-10-19 02:54:33 +08:00
server端过滤无需转发的消息
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user