server端增加未知类型消息的转发逻辑

This commit is contained in:
lwch
2021-10-29 18:57:23 +08:00
parent ab3c7fd476
commit 210f9a13df

View File

@@ -137,14 +137,7 @@ func (h *Handler) getClient(linkID, to string, toIdx uint32) *client {
func (h *Handler) onMessage(from *client, conn *network.Conn, msg *network.Msg) {
to := msg.GetTo()
toIdx := msg.GetToIdx()
switch msg.GetXType() {
case network.Msg_connect_req:
case network.Msg_connect_rep:
case network.Msg_disconnect:
case network.Msg_forward:
case network.Msg_shell_resize:
case network.Msg_shell_data:
default:
if msg.GetXType() == network.Msg_keepalive {
return
}
cli := h.getClient(msg.GetLinkId(), to, toIdx)