feat: prompt user on host key verification (#943)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-10-20 09:31:20 +08:00
committed by GitHub
parent 8cbb48ed67
commit 5272324be6
38 changed files with 1076 additions and 219 deletions

View File

@@ -72,6 +72,18 @@ class SettingStore extends HiveStore {
late final editorFontSize = propertyDefault('editorFontSize', 12.5);
/// Trusted SSH host key fingerprints keyed by `serverId::keyType`.
late final sshKnownHostFingerprints = propertyDefault<Map<String, String>>(
'sshKnownHostFingerprints',
const {},
fromObj: (raw) {
if (raw is Map) {
return raw.map((key, value) => MapEntry(key.toString(), value.toString()));
}
return <String, String>{};
},
);
// Editor theme
late final editorTheme = propertyDefault('editorTheme', Defaults.editorTheme);