fix import lowcase host from ssh/config

This commit is contained in:
zhipeng 2022-04-20 19:34:06 +08:00
parent b6d0bd2d43
commit ca441b6f83
No known key found for this signature in database
GPG Key ID: F8338B06D17E573C

View File

@ -26,7 +26,7 @@ export class OpenSSHImporter extends SSHProfileImporter {
if (line.trim().startsWith('#') || !line.trim()) {
continue
}
if (line.startsWith('Host ')) {
if (line.toLowerCase().startsWith('host ')) {
if (currentProfile) {
results.push(currentProfile)
}