mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-30 09:19:29 +00:00
Handle multiple UDP packets in socks.
This commit is contained in:
parent
2a00e2c6e9
commit
1b80a1a85a
@ -66,7 +66,7 @@ func (server *SocksServer) handlePacket(conn *net.UDPConn, packet v2net.Packet,
|
|||||||
ray := server.vPoint.DispatchToOutbound(packet)
|
ray := server.vPoint.DispatchToOutbound(packet)
|
||||||
close(ray.InboundInput())
|
close(ray.InboundInput())
|
||||||
|
|
||||||
if data, ok := <-ray.InboundOutput(); ok {
|
for data := range ray.InboundOutput() {
|
||||||
response := &protocol.Socks5UDPRequest{
|
response := &protocol.Socks5UDPRequest{
|
||||||
Fragment: 0,
|
Fragment: 0,
|
||||||
Address: targetAddr,
|
Address: targetAddr,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user