fix hostkeychanged triggereing when it hasnt changed

This commit is contained in:
neon443 committed 2025-08-04 16:07:54 +01:00
1 parent 3b50139c97
commit c3c6405ad1
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ class SSHHandler: @unchecked Sendable, ObservableObject {
} }
func getHostkey() -> String? { func getHostkey() -> String? {
guard ssh_is_connected(session) == 0 else { return nil } guard ssh_is_connected(session) == 1 else { return nil }
var hostkey: ssh_key? var hostkey: ssh_key?
ssh_get_server_publickey(session, &hostkey) ssh_get_server_publickey(session, &hostkey)
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.