mirror of
https://github.com/lwch/natpass
synced 2025-10-25 13:20:20 +08:00
修正server中保持连接的处理逻辑
This commit is contained in:
@@ -156,7 +156,7 @@ func (h *Handler) onMessage(from *client, conn *network.Conn, msg *network.Msg)
|
||||
func (h *Handler) msgHook(msg *network.Msg, from, to *client) {
|
||||
switch msg.GetXType() {
|
||||
case network.Msg_connect_req:
|
||||
id := msg.GetCrep().GetId()
|
||||
id := msg.GetCreq().GetId()
|
||||
var pair [2]*client
|
||||
if from != nil {
|
||||
from.addLink(id)
|
||||
|
||||
Reference in New Issue
Block a user