#78 opt.: alter url

This commit is contained in:
lollipopkit
2023-07-29 16:53:57 +08:00
parent 7f4dcc1357
commit e13c5910ec
14 changed files with 64 additions and 39 deletions

View File

@@ -57,16 +57,14 @@ Future<SSHClient> genClient(
);
} catch (e) {
try {
spi.fromStringUrl();
socket = await SSHSocket.connect(
spi.alterHost!,
spi.ip,
spi.port,
timeout: const Duration(seconds: 5),
);
} catch (e) {
throw SSHErr(
type: SSHErrType.connect,
message: e.toString(),
);
rethrow;
}
}