From 3eaf46e09d45be61a2283bdb2bdf79f8fd3c6481 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Wed, 8 Dec 2021 19:32:41 +0100 Subject: [PATCH] disabled ssh algorithm blacklist by default - fixes #4995, fixes #5072 --- tabby-ssh/src/api/interfaces.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tabby-ssh/src/api/interfaces.ts b/tabby-ssh/src/api/interfaces.ts index e449561c..80b7d436 100644 --- a/tabby-ssh/src/api/interfaces.ts +++ b/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 = [] +}