This commit is contained in:
Eugene 2025-01-16 22:30:36 +01:00
parent d8d346c507
commit 6db08b765f
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -533,7 +533,7 @@ export class SSHSession {
while (true) {
const m = methodsLeft
const method = this.remainingAuthMethods.find(x => !m || m.includes(sshAuthTypeForMethod(x)))
const method = this.remainingAuthMethods.find(x => m.length === 0 || m.includes(sshAuthTypeForMethod(x)))
if (!method) {
return null