From 969d3291b6380aa62899df502b063d0a330f805b Mon Sep 17 00:00:00 2001 From: coder <273461474@qq.com> Date: Sat, 2 Apr 2022 19:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8forwarding?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20(#1565)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/gate.lua | 3 --- 1 file changed, 3 deletions(-) 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