From 8c7cc4a7354da306a5e9041d5ef5182d654dcf22 Mon Sep 17 00:00:00 2001 From: "Sam S Lee (RD-TW)" Date: Thu, 12 Jul 2018 15:17:01 +0800 Subject: [PATCH] support tls secureProtocol option --- lib/options.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/options.js b/lib/options.js index 56c7a6e..583b0bc 100755 --- a/lib/options.js +++ b/lib/options.js @@ -106,6 +106,9 @@ function modernize(legacy) { if (legacy.secure.hasOwnProperty('certPath')) { modernized.credentials.certPath = legacy.secure.certPath; } + if (legacy.secure.hasOwnProperty('secureProtocol')) { + modernized.credentials.secureProtocol = legacy.secure.secureProtocol; + } } // else no credentials were provided // construct `interfaces`