This commit is contained in:
lollipopkit🏳️‍⚧️
2026-01-15 13:02:17 +08:00
parent 928f2becf1
commit 827d40b8b5
2 changed files with 7 additions and 3 deletions

View File

@@ -46,7 +46,9 @@ List<Spi> resolveMergedJumpChain(
if (jumpChain != null) {
for (final s in jumpChain) {
injectedSpiMap[s.id] = s;
injectedSpiMap[s.oldId] = s;
if (s.oldId.isNotEmpty) {
injectedSpiMap[s.oldId] = s;
}
}
}

View File

@@ -23,8 +23,10 @@ class SftpReq {
final hopIds = spi.jumpChainIds ?? (spi.jumpId == null ? const <String>[] : [spi.jumpId!]);
for (final hopId in hopIds) {
final hopSpi = Stores.server.box.get(hopId);
if (hopSpi == null) break;
if (hopSpi == null) {
Loggers.app.warning('Jump server not found: $hopId, truncating chain');
break;
}
final hopKey = hopSpi.id.isNotEmpty ? hopSpi.id : hopSpi.oldId;
if (!visited.add(hopKey)) {
throw SSHErr(