Merge pull request #653 from lukem512/patch-1

Allow SSL connections to bitcoind
This commit is contained in:
Manuel Aráoz 2014-12-09 11:02:27 -03:00
commit 100de8a9ba
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function RpcClient(opts) {
this.protocol = (opts.protocol == 'http') ? http : https;
this.batchedCalls = null;
this.disableAgent = opts.disableAgent || false;
this.rejectUnauthorized = opts.rejectUnauthorized || false;
}
RpcClient.prototype.batch = function(batchCallback, resultCallback) {
@ -163,6 +164,7 @@ function rpc(request, callback) {
path: '/',
method: 'POST',
port: self.port,
rejectUnauthorized: self.rejectUnauthorized,
agent: self.disableAgent ? false : undefined,
};
if (self.httpOptions) {