From 934f8028796b3f5de3887491a2c215c550fc5c17 Mon Sep 17 00:00:00 2001 From: divocat Date: Wed, 8 Oct 2025 00:02:41 +0300 Subject: [PATCH] fix: force http for clash api --- fe-app-podkop/src/helpers/getClashApiUrl.ts | 4 ++-- .../htdocs/luci-static/resources/view/podkop/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;