mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
Solve ssh connect slow
This commit is contained in:
@@ -15,6 +15,11 @@ class PrivateKeyStore extends PersistentStore {
|
||||
json.decode(box.get('key', defaultValue: '[]')!));
|
||||
}
|
||||
|
||||
PrivateKeyInfo get(String id) {
|
||||
final ss = fetch();
|
||||
return ss.firstWhere((e) => e.id == id);
|
||||
}
|
||||
|
||||
void delete(PrivateKeyInfo s) {
|
||||
final ss = fetch();
|
||||
ss.removeAt(index(s));
|
||||
|
||||
Reference in New Issue
Block a user