mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-14 04:05:18 +01:00
opt.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user