Sfoglia il codice sorgente

Fix for domain address

V2Ray 10 anni fa
parent
commit
7a24dc3e09
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      proxy/socks/udp.go

+ 1 - 1
proxy/socks/udp.go

@@ -58,7 +58,7 @@ func (server *SocksServer) AcceptPackets(conn *net.UDPConn) error {
 
 		udpPacket := v2net.NewPacket(request.Destination(), request.Data, false)
     log.Info("Send packet to %s with %d bytes", udpPacket.Destination().String(), len(request.Data))
-		go server.handlePacket(conn, udpPacket, addr, v2net.IPAddress(request.Address.IP(), request.Address.Port()))
+		go server.handlePacket(conn, udpPacket, addr, request.Address)
 	}
 }