diff --git a/fe-app-podkop/src/helpers/getClashApiUrl.ts b/fe-app-podkop/src/helpers/getClashApiUrl.ts index df52bec..dd4046d 100644 --- a/fe-app-podkop/src/helpers/getClashApiUrl.ts +++ b/fe-app-podkop/src/helpers/getClashApiUrl.ts @@ -1,7 +1,7 @@ export function getClashApiUrl(): string { - const { protocol, hostname } = window.location; + const { hostname } = window.location; - return `${protocol}//${hostname}:9090`; + return `http://${hostname}:9090`; } export function getClashWsUrl(): string { diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js index 32337ff..3597c07 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js @@ -763,8 +763,8 @@ async function onMount(id) { // src/helpers/getClashApiUrl.ts function getClashApiUrl() { - const { protocol, hostname } = window.location; - return `${protocol}//${hostname}:9090`; + const { hostname } = window.location; + return `http://${hostname}:9090`; } function getClashWsUrl() { const { hostname } = window.location;