diff --git a/src/webpage/utils/utils.ts b/src/webpage/utils/utils.ts index f12cd37..cd1fc5e 100644 --- a/src/webpage/utils/utils.ts +++ b/src/webpage/utils/utils.ts @@ -516,7 +516,7 @@ export async function getapiurls(str: string): Promise< tempurls.api.protocol = protical; tempurls.gateway.host = newOrgin; - tempurls.gateway.protocol = newOrgin === "http:" ? "ws:" : "wss:"; + tempurls.gateway.protocol = temp.protocol === "http:" ? "ws:" : "wss:"; tempurls.wellknown.host = newOrgin; tempurls.wellknown.protocol = protical;