mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-12 23:50:31 +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()
|
||||
return await instance.get(`/proxies/${encodeURIComponent(proxy)}/delay`, {
|
||||
params: {
|
||||
url: url || delayTestUrl || 'https://www.gstatic.com/generate_204',
|
||||
url: delayTestUrl || url || 'https://www.gstatic.com/generate_204',
|
||||
timeout: delayTestTimeout || 5000
|
||||
}
|
||||
})
|
||||
@ -181,7 +181,7 @@ export const mihomoGroupDelay = async (group: string, url?: string): Promise<IMi
|
||||
const instance = await getAxios()
|
||||
return await instance.get(`/group/${encodeURIComponent(group)}/delay`, {
|
||||
params: {
|
||||
url: url || delayTestUrl || 'https://www.gstatic.com/generate_204',
|
||||
url: delayTestUrl || url || 'https://www.gstatic.com/generate_204',
|
||||
timeout: delayTestTimeout || 5000
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user