chore: Replace test URL to support iPv4&iPv6 (#2033)

This commit is contained in:
Christine.
2024-11-18 00:20:21 +08:00
committed by GitHub
parent ae181f6835
commit a59fda512c
3 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ export const getProxyDelay = async (
) => {
const params = {
timeout: timeout || 10000,
url: url || "http://1.1.1.1",
url: url || "https://cp.cloudflare.com/generate_204",
};
const instance = await getAxios();
const result = await instance.get(
@@ -258,7 +258,7 @@ export const getGroupProxyDelays = async (
) => {
const params = {
timeout: timeout || 10000,
url: url || "http://1.1.1.1",
url: url || "https://cp.cloudflare.com/generate_204",
};
const instance = await getAxios();
const result = await instance.get(