Skip to content

Commit

Permalink
Fix empty identity handling #14
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed Mar 6, 2022
1 parent 066cc9b commit 3f6c6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/ssh_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ class SSHClient {
void _startAuthentication() {
printDebug?.call('SSHClient._startAuthentication');

if (identities != null) {
if (identities != null && identities!.isNotEmpty) {
_authMethodsLeft.add(SSHAuthMethod.publicKey);
}

Expand Down

0 comments on commit 3f6c6b1

Please sign in to comment.