mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: alterUrl will change spi's props
This commit is contained in:
@@ -58,10 +58,10 @@ Future<SSHClient> genClient(
|
||||
} catch (e) {
|
||||
if (spi.alterUrl == null) rethrow;
|
||||
try {
|
||||
spi.fromStringUrl();
|
||||
final ipPort = spi.fromStringUrl();
|
||||
socket = await SSHSocket.connect(
|
||||
spi.ip,
|
||||
spi.port,
|
||||
ipPort.ip,
|
||||
ipPort.port,
|
||||
timeout: const Duration(seconds: 5),
|
||||
);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user