瀏覽代碼

disabled ssh algorithm blacklist by default - fixes #4995, fixes #5072

Eugene Pankov 3 年之前
父節點
當前提交
3eaf46e09d
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      tabby-ssh/src/api/interfaces.ts

+ 5 - 1
tabby-ssh/src/api/interfaces.ts

@@ -49,8 +49,12 @@ export interface ForwardedPortConfig {
     description: string
 }
 
-export const ALGORITHM_BLACKLIST = [
+export let ALGORITHM_BLACKLIST = [
     // cause native crashes in node crypto, use EC instead
     'diffie-hellman-group-exchange-sha256',
     'diffie-hellman-group-exchange-sha1',
 ]
+
+if (!process.env.TABBY_ENABLE_SSH_ALG_BLACKLIST) {
+    ALGORITHM_BLACKLIST = []
+}