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

This commit is contained in:
Eugene Pankov 2021-12-08 19:32:41 +01:00
parent fc02d27056
commit 3eaf46e09d
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -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 = []
}