diff options
| author | MetaCubeX <[email protected]> | 2022-06-04 01:08:20 +0800 |
|---|---|---|
| committer | MetaCubeX <[email protected]> | 2022-06-04 01:08:20 +0800 |
| commit | f6e5bdfaa7ea43a193eebdecf9619e6e5ec40919 (patch) | |
| tree | 71d0c4be25bbf76e916978221e468a9fa5117a49 | |
| parent | de0930aba4957bcba8ce867012b9a6dd87cb9e2b (diff) | |
chore: adjust latencyTestUrl
| -rw-r--r-- | src/api/proxies.ts | 2 | ||||
| -rw-r--r-- | src/store/app.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/proxies.ts b/src/api/proxies.ts index 638cddf..ce3266e 100644 --- a/src/api/proxies.ts +++ b/src/api/proxies.ts @@ -33,7 +33,7 @@ export async function requestToSwitchProxy(apiConfig, name1, name2) { export async function requestDelayForProxy( apiConfig, name, - latencyTestUrl = 'http://www.gstatic.com/generate_202' + latencyTestUrl = 'http://www.gstatic.com/generate_204' ) { const { url, init } = getURLAndInit(apiConfig); const qs = `timeout=5000&url=${latencyTestUrl}`; diff --git a/src/store/app.ts b/src/store/app.ts index e1e7ef4..7262b32 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_202', + latencyTestUrl: 'http://www.gstatic.com/generate_204', selectedChartStyleIndex: 0, theme: 'dark', |
