okk.... so ssh_userauth_list always returns 0

This commit is contained in:
neon443 committed 2025-06-08 21:05:08 +01:00
1 parent ec10964c4b
commit 89defb4ac7
1 file changed
+2 -1
+2 -1
View File
@@ -44,7 +44,7 @@ class SSHHandler: ObservableObject {
func connect() -> Bool { func connect() -> Bool {
defer { defer {
getAuthMethods() // getAuthMethods()
self.host.key = getHostkey() self.host.key = getHostkey()
} }
@@ -231,6 +231,7 @@ class SSHHandler: ObservableObject {
return true return true
} }
//always unknown idk why
func getAuthMethods() { func getAuthMethods() {
var recievedMethod: CInt var recievedMethod: CInt
recievedMethod = ssh_userauth_list(session, host.username) recievedMethod = ssh_userauth_list(session, host.username)
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.