Skip to content

Commit

Permalink
close #36
Browse files Browse the repository at this point in the history
  • Loading branch information
butlerx committed Mar 11, 2018
1 parent 84fc48e commit 65c369d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/command.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export default (
'-o',
`PreferredAuthentications=${auth}`,
],
user: localhost(host) || user !== '' || user.includes('@'),
user:
localhost(host) ||
user !== '' ||
user.includes('@') ||
address(headers, user, host).includes('@'),
});

function address(headers, user, host) {
Expand Down

0 comments on commit 65c369d

Please sign in to comment.