This commit is contained in:
lollipopkit🏳️‍⚧️
2026-01-15 13:15:31 +08:00
parent 827d40b8b5
commit 6738ac94f8

View File

@@ -24,8 +24,10 @@ class SftpReq {
for (final hopId in hopIds) {
final hopSpi = Stores.server.box.get(hopId);
if (hopSpi == null) {
Loggers.app.warning('Jump server not found: $hopId, truncating chain');
break;
throw SSHErr(
type: SSHErrType.connect,
message: 'Jump server not found: $hopId',
);
}
final hopKey = hopSpi.id.isNotEmpty ? hopSpi.id : hopSpi.oldId;
if (!visited.add(hopKey)) {