fix: force http for clash api

This commit is contained in:
divocat
2025-10-08 00:02:41 +03:00
parent 88ee7b4a54
commit 934f802879
2 changed files with 4 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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;