mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-20 22:52:46 -05:00
Fix #189 ca safety check is missing
This commit is contained in:
parent
54481095ce
commit
4b9af22c95
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ function afterConfigLoad() {
|
||||||
let webServer;
|
let webServer;
|
||||||
|
|
||||||
if (addr.proto === 'https') { // https
|
if (addr.proto === 'https') { // https
|
||||||
if (!config.https || !config.https.key || !config.https.cert) {
|
if (!config.https || !config.https.key || !config.https.cert || !config.https.ca) {
|
||||||
let conf_path = function(file) {
|
let conf_path = function(file) {
|
||||||
if (!file) return config_path;
|
if (!file) return config_path;
|
||||||
return Path.resolve(Path.dirname(config_path), file);
|
return Path.resolve(Path.dirname(config_path), file);
|
||||||
|
|
Loading…
Add table
Reference in a new issue