Skip to content

Commit 3dc6860

Browse files
author
Braydon Fuller
committed
bitcoind: connect option for strict ssl
This is to be able to configure the RPC client to handle self-signed certificates for development purposes.
1 parent 8f9af82 commit 3dc6860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/bitcoind.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,8 @@ Bitcoin.prototype._connectProcess = function(config, callback) {
925925
host: config.rpchost || '127.0.0.1',
926926
port: config.rpcport,
927927
user: config.rpcuser,
928-
pass: config.rpcpassword
928+
pass: config.rpcpassword,
929+
rejectUnauthorized: _.isUndefined(config.rpcstrict) ? true : config.rpcstrict
929930
});
930931

931932
self._loadTipFromNode(node, done);

0 commit comments

Comments
 (0)