0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

fix: remove useless secureProtocol option (#1158)

This commit is contained in:
Liming Jin 2018-12-21 05:42:56 +08:00 committed by Juan Picado @jotadeveloper
parent 239501c3d8
commit c99266dd54

View file

@ -133,8 +133,7 @@ function displayHTTPSWarning(storageLocation) {
function handleHTTPS(app, configPath, config) { function handleHTTPS(app, configPath, config) {
try { try {
let httpsOptions = { let httpsOptions = {
secureProtocol: 'SSLv23_method', // disable insecure SSLv2 and SSLv3 secureOptions: constants.SSL_OP_NO_SSLv2 | constants.SSL_OP_NO_SSLv3, // disable insecure SSLv2 and SSLv3
secureOptions: constants.SSL_OP_NO_SSLv2 | constants.SSL_OP_NO_SSLv3,
}; };
if (config.https.pfx) { if (config.https.pfx) {