mirror of
https://github.com/eugeny/tabby
synced 2026-09-24 14:06:03 +00:00
fix: case-insensitive hostname check (#10130)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user