diff --git a/service/gate.lua b/service/gate.lua index e3a210cc..5d81ef4b 100644 --- a/service/gate.lua +++ b/service/gate.lua @@ -22,7 +22,7 @@ function handler.message(fd, msg, sz) local c = connection[fd] local agent = c.agent if agent then - skynet.redirect(agent, c.client, "client", 1, msg, sz) + skynet.redirect(agent, c.client, "client", fd, msg, sz) else skynet.send(watchdog, "lua", "socket", "data", fd, netpack.tostring(msg, sz)) end