diff --git a/src/components/cards/computer-card.tsx b/src/components/cards/computer-card.tsx index 57f692e..8597b2f 100644 --- a/src/components/cards/computer-card.tsx +++ b/src/components/cards/computer-card.tsx @@ -8,7 +8,6 @@ import { useGetClientFolderStatusForDevice } from "@/hooks/queries"; import type { ClientFolderStatus } from "@/types/folder"; import { Button } from "@/components/ui/button"; import { getRemoteDesktopUrl } from "@/services/remote-control.service"; -import { buildMeshProxyUrl } from "@/config/api"; import { toast } from "sonner"; export function ComputerCard({ device, @@ -58,11 +57,7 @@ export function ComputerCard({ try { setIsConnecting(true); const response = await getRemoteDesktopUrl(device.id); - const originalUrl = new URL(response.url); - const pathAndQuery = originalUrl.pathname + originalUrl.search; - const proxyUrlFull = buildMeshProxyUrl(pathAndQuery); - - setProxyUrl(proxyUrlFull); + setProxyUrl(response.url); setShowRemote(true); } catch (error: any) { toast.error(