Переглянути джерело

fix import lowcase host from ssh/config

zhipeng 3 роки тому
батько
коміт
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)
                     }