fix: temporarily disable jump server

This commit is contained in:
lollipopkit
2023-11-19 14:47:27 +08:00
parent 691471dae5
commit 1a49c7870c
8 changed files with 65 additions and 59 deletions

View File

@@ -60,25 +60,28 @@ Future<SSHClient> genClient(
onStatus?.call(GenSSHClientStatus.socket);
final socket = await () async {
// Proxy
final jumpSpi_ = () {
// Multi-thread or key login
if (jumpSpi != null) return jumpSpi;
// Main thread
if (spi.jumpId != null) return Stores.server.box.get(spi.jumpId);
}();
if (jumpSpi_ != null) {
final jumpClient = await genClient(
jumpSpi_,
privateKey: jumpPrivateKey,
timeout: timeout,
);
/// Issues #210
/// Temporarily comment out the proxy function
return await jumpClient.forwardLocal(
spi.ip,
spi.port,
);
}
// Proxy
// final jumpSpi_ = () {
// // Multi-thread or key login
// if (jumpSpi != null) return jumpSpi;
// // Main thread
// if (spi.jumpId != null) return Stores.server.box.get(spi.jumpId);
// }();
// if (jumpSpi_ != null) {
// final jumpClient = await genClient(
// jumpSpi_,
// privateKey: jumpPrivateKey,
// timeout: timeout,
// );
// return await jumpClient.forwardLocal(
// spi.ip,
// spi.port,
// );
// }
// Direct
try {