From ca441b6f8356adff33071da693cc212655f2cb8c Mon Sep 17 00:00:00 2001 From: zhipeng Date: Wed, 20 Apr 2022 19:34:06 +0800 Subject: [PATCH] fix import lowcase host from ssh/config --- tabby-electron/src/sshImporters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-electron/src/sshImporters.ts b/tabby-electron/src/sshImporters.ts index eca1c384..bdba4eb9 100644 --- a/tabby-electron/src/sshImporters.ts +++ b/tabby-electron/src/sshImporters.ts @@ -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) }