diff --git a/bin/node-http-proxy b/bin/node-http-proxy index 7c0f4f8..c165b1e 100755 --- a/bin/node-http-proxy +++ b/bin/node-http-proxy @@ -43,9 +43,9 @@ if (argv.config) { // // If `config.https` is set, then load those files into the config options. // -if (options.config) { - Object.keys(options.config).forEach(function (key) { - options.config[key] = fs.readFileSync(options.config[key], 'utf8'); +if (config.https) { + Object.keys(config.https).forEach(function (key) { + config.https[key] = fs.readFileSync(config.https[key], 'utf8'); }); }