mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-12 22:42:18 +00:00
Introduce Packet to unify TCP and UDP communication
This commit is contained in:
1 parent
4320c14efd
commit
4874cd54a4
12 files changed
+124
-41
No files matched your search
@@ -170,7 +170,7 @@ func (server *SocksServer) HandleConnection(connection net.Conn) error {
|
||||
dest = request.Destination()
|
||||
}
|
||||
|
||||
ray := server.vPoint.NewInboundConnectionAccepted(dest)
|
||||
ray := server.vPoint.DispatchToOutbound(v2net.NewTCPPacket(dest))
|
||||
input := ray.InboundInput()
|
||||
output := ray.InboundOutput()
|
||||
readFinish := make(chan bool)
|
||||
|
||||
Reference in new issue
Block a user