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);