fix: unify homepage node selection

This commit is contained in:
wonfen
2025-09-01 11:30:27 +08:00
parent 1b54c9fc1b
commit 0ea875f7f7
4 changed files with 179 additions and 122 deletions

View File

@@ -74,7 +74,8 @@ class DelayManager {
if (delay >= 0 || delay === -2) return delay;
}
if (proxy.history.length > 0) {
// 添加 history 属性的安全检查
if (proxy.history && proxy.history.length > 0) {
// 0ms以error显示
return proxy.history[proxy.history.length - 1].delay || 1e6;
}