From d0dd09ad8826d58d6b4ac34209efcec30db43bf2 Mon Sep 17 00:00:00 2001 From: Hiroaki Ogasawara <13391129+xhiroga@users.noreply.github.com> Date: Wed, 1 Jan 2025 09:08:20 +0900 Subject: [PATCH] fix: case-insensitive hostname check (#10130) --- 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 0360fce6..8e55e7be 100644 --- a/tabby-electron/src/sshImporters.ts +++ b/tabby-electron/src/sshImporters.ts @@ -272,7 +272,7 @@ function convertToSSHProfiles (config: SSHConfig): PartialProfile[] if (!(host in myMap)) { // NOTE: SSHConfig.compute() lies about the return types const configuration: Record = config.compute(host) - if (configuration['HostName']) { + if (Object.keys(configuration).map(key => key.toLowerCase()).includes('hostname')) { myMap[host] = convertHostToSSHProfile(host, configuration) } }