From a36a6bfa79a04585eea5216b7733e9a800d0df4c Mon Sep 17 00:00:00 2001 From: lwch Date: Mon, 23 Aug 2021 16:14:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=BF=9E=E6=8E=A5=E6=97=B6?= =?UTF-8?q?=E7=9A=84target=E5=AD=97=E6=AE=B5=E8=AE=BE=E7=BD=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/client/pool/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/pool/handler.go b/code/client/pool/handler.go index 04eb5b9..e373643 100644 --- a/code/client/pool/handler.go +++ b/code/client/pool/handler.go @@ -33,7 +33,7 @@ func (p *Pool) handleConnectReq(conn *network.Conn, from, to string, req *networ RemoteAddr: req.GetAddr(), RemotePort: uint16(req.GetPort()), }, p) - tn.NewLink(req.GetId(), to, link, p.writeChannel) + tn.NewLink(req.GetId(), from, link, p.writeChannel) p.Add(tn) p.sendConnectOK(conn, to, from, req.GetId()) }