bitcoind: connect option for strict ssl

This is to be able to configure the RPC client to handle self-signed
certificates for development purposes.
This commit is contained in:
Braydon Fuller 2016-06-09 16:39:03 -04:00
parent 8f9af8241a
commit 3dc6860cb3
1 changed files with 2 additions and 1 deletions

View File

@ -925,7 +925,8 @@ Bitcoin.prototype._connectProcess = function(config, callback) {
host: config.rpchost || '127.0.0.1',
port: config.rpcport,
user: config.rpcuser,
pass: config.rpcpassword
pass: config.rpcpassword,
rejectUnauthorized: _.isUndefined(config.rpcstrict) ? true : config.rpcstrict
});
self._loadTipFromNode(node, done);