mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +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)) {
|
if (Array.isArray(extra)) {
|
||||||
const delay = extra.at(-1)?.delay
|
const delay = extra.at(-1)?.delay
|
||||||
|
|
||||||
if (delay || !fallbackDefault) {
|
if (delay) {
|
||||||
return delay
|
return delay
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!fallbackDefault) {
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
|
||||||
return proxy.history?.at(-1)?.delay
|
return proxy.history?.at(-1)?.delay
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user