summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLarvan2 <[email protected]>2023-04-15 09:29:38 +0000
committerLarvan2 <[email protected]>2023-04-15 09:29:38 +0000
commit8b5c59ee3fd6544d6d4d0a295e6ffb0db010b79c (patch)
tree4861a1d8d3b6b1007439c75d13b3cda29ef58bc2 /src
parent7ead6d69e89cbc91790753155b383ca937037718 (diff)
urltest using https for safety
Diffstat (limited to 'src')
-rw-r--r--src/api/proxies.ts2
-rw-r--r--src/store/app.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/proxies.ts b/src/api/proxies.ts
index 36aa05d..0b98bd0 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 ed0d421..d154a6c 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',