Skip to content

Commit 3bb5b8d

Browse files
committed
fix(cli:reload): support self-signed certificates with cli reload command - fixes #1235
1 parent c87c52f commit 3bb5b8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/cli/command.reload.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ module.exports = function (opts) {
2525

2626
var url = proto.getUrl(args, flags.url);
2727

28+
if (scheme === "https") {
29+
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
30+
}
31+
2832
require(scheme).get(url, function (res) {
2933
res.on("data", function () {
3034
if (res.statusCode === 200) {

0 commit comments

Comments
 (0)