From f4d5bc7aa4c436bb2922ef93a4af0fba1bbe128b Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Wed, 18 Apr 2018 19:32:15 +0800 Subject: [PATCH] forward fd to agent --- service/gate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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