diff --git a/service/gate.lua b/service/gate.lua index ef4c24af..d78cdafa 100644 --- a/service/gate.lua +++ b/service/gate.lua @@ -3,7 +3,6 @@ local gateserver = require "snax.gateserver" local watchdog local connection = {} -- fd -> connection : { fd , client, agent , ip, mode } -local forwarding = {} -- agent -> connection skynet.register_protocol { name = "client", @@ -41,7 +40,6 @@ end local function unforward(c) if c.agent then - forwarding[c.agent] = nil c.agent = nil c.client = nil end @@ -76,7 +74,6 @@ function CMD.forward(source, fd, client, address) unforward(c) c.client = client or 0 c.agent = address or source - forwarding[c.agent] = c gateserver.openclient(fd) end