Allows connection to incorrect SSL certificates.

This commit is contained in:
Julien Fontanet 2014-05-27 18:55:25 +01:00
parent c3ef051657
commit 7ed9adaf49

View File

@ -57,6 +57,7 @@ exports = module.exports = function (args) {
return match[1].toUpperCase();
});
if (fnName in exports) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
return exports[fnName](args.slice(1));
}