From eb2641bc2dc6b2448c7c564c6a93a2f62168336f Mon Sep 17 00:00:00 2001 From: Hiroaki Ogasawara <13391129+xhiroga@users.noreply.github.com> Date: Sun, 29 Dec 2024 20:27:55 +0900 Subject: [PATCH] fix: case-insensitive hostname check --- 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 0360fce649..8e55e7be22 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) } }