fix: sftp download/upload (#255)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:computer/computer.dart';
|
||||
import 'package:dartssh2/dartssh2.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:toolbox/data/model/app/error.dart';
|
||||
@@ -121,6 +120,7 @@ Future<SSHClient> genClient(
|
||||
return SSHClient(
|
||||
socket,
|
||||
username: spi.user,
|
||||
identities: await Computer.shared.start(loadIndentity, privateKey),
|
||||
// Must use [compute] here, instead of [Computer.shared.start]
|
||||
identities: await compute(loadIndentity, privateKey),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 721;
|
||||
static const int build = 722;
|
||||
static const String engine = "3.16.8";
|
||||
static const String buildAt = "2024-01-25 20:49:53";
|
||||
static const int modifications = 3;
|
||||
static const String buildAt = "2024-01-25 22:34:23";
|
||||
static const int modifications = 1;
|
||||
static const int script = 36;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ class _ServerDetailOrderPageState extends State<ServerFuncBtnsOrderPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: CustomAppBar(
|
||||
title: Text(l10n.serverDetailOrder),
|
||||
title: Text(l10n.sequence),
|
||||
),
|
||||
body: _buildBody(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user