fix: nil for nextnode (#892)

This commit is contained in:
YetAnotherZephyruso 2024-08-05 09:39:49 +08:00 committed by GitHub
parent 0a7d2d47d4
commit a4be39268a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,7 +248,13 @@ export const useProxies = () => {
} }
while (node.now && node.now !== node.name) { while (node.now && node.now !== node.name) {
node = proxyNodeMap()[node.now] const nextNode = proxyNodeMap()[node.now]
if (!nextNode) {
return node.name
}
node = nextNode
} }
return node.name return node.name