Fix wording in logging for "DF-GE" flag

feature/ssh-config
Kelvin Schoofs 4 years ago
parent 184177a2ff
commit a9082cc717

@ -242,7 +242,7 @@ export async function createSSH(config: FileSystemConfig, sock?: NodeJS.Readable
// Unless the flag 'DF-GE' is specified, disable DiffieHellman groupex algorithms (issue #239) // Unless the flag 'DF-GE' is specified, disable DiffieHellman groupex algorithms (issue #239)
// Note: If the config already specifies a custom `algorithms.key`, ignore it (trust the user?) // Note: If the config already specifies a custom `algorithms.key`, ignore it (trust the user?)
if (getFlag('DF-GE') === undefined && !finalConfig.algorithms?.kex) { if (getFlag('DF-GE') === undefined && !finalConfig.algorithms?.kex) {
logging.info('Flag "DiffieHellman" specified, disabling DiffieHellman kex groupex algorithms'); logging.info('Flag "DF-GE" not specified, disabling DiffieHellman kex groupex algorithms');
let kex: string[] = require('ssh2-streams/lib/constants').ALGORITHMS.KEX; let kex: string[] = require('ssh2-streams/lib/constants').ALGORITHMS.KEX;
kex = kex.filter(algo => !algo.includes('diffie-hellman-group-exchange')); kex = kex.filter(algo => !algo.includes('diffie-hellman-group-exchange'));
logging.debug(`\tResulting algorithms.kex: ${kex}`); logging.debug(`\tResulting algorithms.kex: ${kex}`);

Loading…
Cancel
Save