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