mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix (#195) & opt.
- fix: debug provider color - fix: can't write script through SFTP (#195) - opt.: go next refresh only after current refresh task is done
This commit is contained in:
@@ -49,6 +49,7 @@ Future<SSHClient> genClient(
|
||||
|
||||
/// [ServerPrivateInfo] of the jump server
|
||||
ServerPrivateInfo? jumpSpi,
|
||||
String? jumpPrivateKey,
|
||||
}) async {
|
||||
onStatus?.call(GenSSHClientStatus.socket);
|
||||
SSHSocket? socket;
|
||||
@@ -76,14 +77,13 @@ Future<SSHClient> genClient(
|
||||
if (jumpSpi != null) {
|
||||
final jumpClient = await genClient(
|
||||
jumpSpi,
|
||||
privateKey: privateKey,
|
||||
privateKey: jumpPrivateKey,
|
||||
timeout: timeout,
|
||||
);
|
||||
// Use `0.0.0.0` as localhost to use all interfaces.
|
||||
return await jumpClient.forwardLocal(
|
||||
spi.ip,
|
||||
spi.port,
|
||||
localHost: '0.0.0.0',
|
||||
);
|
||||
}
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user