소스 검색

Fix for domain address

V2Ray 10 년 전
부모
커밋
7a24dc3e09
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 	}
 }