upon accepting the new hostkey, you connect

This commit is contained in:
neon443
2025-06-25 14:12:41 +01:00
parent 548beca410
commit 2207c5d924
2 changed files with 2 additions and 1 deletions

View File

@@ -55,8 +55,8 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
try connect()
} catch {
print("error in connect \(error.localizedDescription)")
return
}
guard connected else { return }
try? authWithNone()
getAuthMethods()

View File

@@ -108,6 +108,7 @@ struct ConnectionView: View {
.alert("Hostkey changed", isPresented: $hostKeyChangedAlert) {
Button("Accept New Hostkey", role: .destructive) {
hostsManager.updateHost(handler.host)
handler.go()
}
Button("Disconnect", role: .cancel) {