mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-13 08:00:30 +08:00
fix: prioritize user delay test URL over proxy group config URL
This commit is contained in:
parent
1c4e048880
commit
1b96e07b65
@ -169,7 +169,7 @@ export const mihomoProxyDelay = async (proxy: string, url?: string): Promise<IMi
|
|||||||
const instance = await getAxios()
|
const instance = await getAxios()
|
||||||
return await instance.get(`/proxies/${encodeURIComponent(proxy)}/delay`, {
|
return await instance.get(`/proxies/${encodeURIComponent(proxy)}/delay`, {
|
||||||
params: {
|
params: {
|
||||||
url: url || delayTestUrl || 'https://www.gstatic.com/generate_204',
|
url: delayTestUrl || url || 'https://www.gstatic.com/generate_204',
|
||||||
timeout: delayTestTimeout || 5000
|
timeout: delayTestTimeout || 5000
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -181,7 +181,7 @@ export const mihomoGroupDelay = async (group: string, url?: string): Promise<IMi
|
|||||||
const instance = await getAxios()
|
const instance = await getAxios()
|
||||||
return await instance.get(`/group/${encodeURIComponent(group)}/delay`, {
|
return await instance.get(`/group/${encodeURIComponent(group)}/delay`, {
|
||||||
params: {
|
params: {
|
||||||
url: url || delayTestUrl || 'https://www.gstatic.com/generate_204',
|
url: delayTestUrl || url || 'https://www.gstatic.com/generate_204',
|
||||||
timeout: delayTestTimeout || 5000
|
timeout: delayTestTimeout || 5000
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user