From 3d98051e207324353c462b1f53ee0e8fe262297d Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 1 May 2019 11:45:45 -0700 Subject: tls: add --tls-min-v1.2 CLI switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch added in v11.x, add it to master/12.x for consistency and compatibility. See: https://github.com/nodejs/node/pull/26951, commit bf2c283555c6b26 PR-URL: https://github.com/nodejs/node/pull/27520 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott Reviewed-By: Tobias Nießen Reviewed-By: Сковорода Никита Андреевич --- lib/tls.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/tls.js') diff --git a/lib/tls.js b/lib/tls.js index 422ed7958a..fa247411f3 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -60,6 +60,8 @@ if (getOptionValue('--tls-min-v1.0')) exports.DEFAULT_MIN_VERSION = 'TLSv1'; else if (getOptionValue('--tls-min-v1.1')) exports.DEFAULT_MIN_VERSION = 'TLSv1.1'; +else if (getOptionValue('--tls-min-v1.2')) + exports.DEFAULT_MIN_VERSION = 'TLSv1.2'; else if (getOptionValue('--tls-min-v1.3')) exports.DEFAULT_MIN_VERSION = 'TLSv1.3'; else -- cgit v1.2.3