mirror of
https://github.com/lwch/natpass.git
synced 2026-10-21 05:09:24 +00:00
修正连接时的target字段设置问题
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user