mirror of
https://github.com/lwch/natpass
synced 2025-11-02 20:44:00 +08:00
server端增加未知类型消息的转发逻辑
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user