Skip to content

Commit

Permalink
fix: case-insensitive hostname check (#10130)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhiroga authored Jan 1, 2025
1 parent 1e44d8c commit d0dd09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabby-electron/src/sshImporters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function convertToSSHProfiles (config: SSHConfig): PartialProfile<SSHProfile>[]
if (!(host in myMap)) {
// NOTE: SSHConfig.compute() lies about the return types
const configuration: Record<string, string | string[] | object[]> = config.compute(host)
if (configuration['HostName']) {
if (Object.keys(configuration).map(key => key.toLowerCase()).includes('hostname')) {
myMap[host] = convertHostToSSHProfile(host, configuration)
}
}
Expand Down

0 comments on commit d0dd09a

Please sign in to comment.