Introduce Packet to unify TCP and UDP communication

This commit is contained in:
V2Ray committed 2015-09-22 14:45:03 +02:00
1 parent 4320c14efd
commit 4874cd54a4
12 files changed
+124 -41

No files matched your search

+1 -1
View File
@@ -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)