From e3339d734533363e3859c90a05b0d7c18e3046e1 Mon Sep 17 00:00:00 2001 From: Vasilii Ermilov Date: Fri, 25 Sep 2020 15:06:43 +1000 Subject: [PATCH] update secureOptions parameter for https server --- lib/httpsServerMgr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/httpsServerMgr.js b/lib/httpsServerMgr.js index d1d162baa..f73a54656 100644 --- a/lib/httpsServerMgr.js +++ b/lib/httpsServerMgr.js @@ -68,7 +68,7 @@ function createHttpsSNIServer(port, handler) { return new Promise((resolve) => { const server = https.createServer({ - secureOptions: constants.SSL_OP_NO_SSLv3 || constants.SSL_OP_NO_TLSv1, + secureOptions: constants.SSL_OP_NO_SSLv3 | constants.SSL_OP_NO_TLSv1, SNICallback: SNIPrepareCert, }, handler).listen(port); resolve(server); @@ -82,7 +82,7 @@ function createHttpsIPServer(ip, port, handler) { certMgr.getCertificate(ip, (err, keyContent, crtContent) => { if (err) return reject(err); const server = https.createServer({ - secureOptions: constants.SSL_OP_NO_SSLv3 || constants.SSL_OP_NO_TLSv1, + secureOptions: constants.SSL_OP_NO_SSLv3 | constants.SSL_OP_NO_TLSv1, key: keyContent, cert: crtContent, }, handler).listen(port);