diff --git a/virtweb_frontend/src/api/VMApi.ts b/virtweb_frontend/src/api/VMApi.ts index edd78aa..382d916 100644 --- a/virtweb_frontend/src/api/VMApi.ts +++ b/virtweb_frontend/src/api/VMApi.ts @@ -338,7 +338,7 @@ export class VMApi { let baseWSURL = APIClient.backendURL(); if (!baseWSURL.includes("://")) baseWSURL = - window.location.protocol + "://" + window.location.hostname + baseWSURL; + window.location.protocol + "//" + window.location.host + baseWSURL; return ( baseWSURL.replace("http", "ws") + diff --git a/virtweb_frontend/src/routes/VNCRoute.tsx b/virtweb_frontend/src/routes/VNCRoute.tsx index 64e8da2..a000951 100644 --- a/virtweb_frontend/src/routes/VNCRoute.tsx +++ b/virtweb_frontend/src/routes/VNCRoute.tsx @@ -57,6 +57,7 @@ function VNCInner(p: { vm: VMInfo }): React.ReactElement { setToken(undefined); const u = await VMApi.OneShotVNCURL(p.vm); + console.info("VNC URL", u); if (!token) setToken({