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()) }