From 7a24dc3e0939e554eae4d5006a351c872b4fdbed Mon Sep 17 00:00:00 2001 From: V2Ray Date: Tue, 6 Oct 2015 17:24:39 +0200 Subject: [PATCH] Fix for domain address --- proxy/socks/udp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/socks/udp.go b/proxy/socks/udp.go index a95d7201a..9d912ea10 100644 --- a/proxy/socks/udp.go +++ b/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) } }