mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-10 21:46:53 +03:00
fix: force http for clash api
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
export function getClashApiUrl(): string {
|
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 {
|
export function getClashWsUrl(): string {
|
||||||
|
|||||||
@@ -763,8 +763,8 @@ async function onMount(id) {
|
|||||||
|
|
||||||
// src/helpers/getClashApiUrl.ts
|
// src/helpers/getClashApiUrl.ts
|
||||||
function getClashApiUrl() {
|
function getClashApiUrl() {
|
||||||
const { protocol, hostname } = window.location;
|
const { hostname } = window.location;
|
||||||
return `${protocol}//${hostname}:9090`;
|
return `http://${hostname}:9090`;
|
||||||
}
|
}
|
||||||
function getClashWsUrl() {
|
function getClashWsUrl() {
|
||||||
const { hostname } = window.location;
|
const { hostname } = window.location;
|
||||||
|
|||||||
Reference in New Issue
Block a user