upon accepting the new hostkey, you connect

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

No files matched your search

+1 -1
View File
@@ -55,8 +55,8 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
try connect() try connect()
} catch { } catch {
print("error in connect \(error.localizedDescription)") print("error in connect \(error.localizedDescription)")
return
} }
guard connected else { return }
try? authWithNone() try? authWithNone()
getAuthMethods() getAuthMethods()
+1
View File
@@ -108,6 +108,7 @@ struct ConnectionView: View {
.alert("Hostkey changed", isPresented: $hostKeyChangedAlert) { .alert("Hostkey changed", isPresented: $hostKeyChangedAlert) {
Button("Accept New Hostkey", role: .destructive) { Button("Accept New Hostkey", role: .destructive) {
hostsManager.updateHost(handler.host) hostsManager.updateHost(handler.host)
handler.go()
} }
Button("Disconnect", role: .cancel) { Button("Disconnect", role: .cancel) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.