diff --git a/src/api/proxies.ts b/src/api/proxies.ts index 36aa05dea..0b98bd0e7 100644 --- a/src/api/proxies.ts +++ b/src/api/proxies.ts @@ -34,7 +34,7 @@ export async function requestToSwitchProxy(apiConfig, name1, name2) { export async function requestDelayForProxy( apiConfig, name, - latencyTestUrl = 'http://www.gstatic.com/generate_204' + latencyTestUrl = 'https://www.gstatic.com/generate_204' ) { const { url, init } = getURLAndInit(apiConfig); const qs = `timeout=5000&url=${encodeURIComponent(latencyTestUrl)}`; diff --git a/src/store/app.ts b/src/store/app.ts index ed0d42110..d154a6cb1 100644 --- a/src/store/app.ts +++ b/src/store/app.ts @@ -159,7 +159,7 @@ const defaultState: StateApp = { selectedClashAPIConfigIndex: 0, clashAPIConfigs: [defaultClashAPIConfig], - latencyTestUrl: 'http://www.gstatic.com/generate_204', + latencyTestUrl: 'https://www.gstatic.com/generate_204', selectedChartStyleIndex: 0, theme: 'dark',