Просмотр исходного кода

fix import lowcase host from ssh/config

zhipeng 3 лет назад
Родитель
Сommit
ca441b6f83
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tabby-electron/src/sshImporters.ts

+ 1 - 1
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)
                     }