mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-24 18:54:13 +08:00
fix: last delay fallback (#468)
This commit is contained in:
parent
aa4d1d9e51
commit
0e3c46569a
@ -84,11 +84,15 @@ const setProxiesInfo = (
|
||||
if (Array.isArray(extra)) {
|
||||
const delay = extra.at(-1)?.delay
|
||||
|
||||
if (delay || !fallbackDefault) {
|
||||
if (delay) {
|
||||
return delay
|
||||
}
|
||||
}
|
||||
|
||||
if (!fallbackDefault) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
return proxy.history?.at(-1)?.delay
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user