Skip to content

Commit

Permalink
urltest using https for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Larvan2 committed Apr 15, 2023
1 parent 7ead6d6 commit 8b5c59e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
Expand Down
2 changes: 1 addition & 1 deletion src/store/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Expand Down

0 comments on commit 8b5c59e

Please sign in to comment.