mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 22:57:10 +00:00
simplify udp handling
This commit is contained in:
1 parent
df963c99ca
commit
76563cb7c7
8 files changed
+48
-148
No files matched your search
@@ -168,7 +168,7 @@ func (server *SocksServer) HandleConnection(connection net.Conn) error {
|
||||
dest = request.Destination()
|
||||
}
|
||||
|
||||
ray := server.vPoint.DispatchToOutbound(v2net.NewTCPPacket(dest))
|
||||
ray := server.vPoint.DispatchToOutbound(v2net.NewPacket(dest, nil, true))
|
||||
input := ray.InboundInput()
|
||||
output := ray.InboundOutput()
|
||||
var readFinish, writeFinish sync.Mutex
|
||||
|
||||
Reference in new issue
Block a user