diff --git a/lib/index.js b/lib/index.js index 41f8462..f4f55e5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -35,6 +35,7 @@ function RpcClient(opts) { this.port = opts.port || 8332; this.user = opts.user || 'user'; this.pass = opts.pass || 'pass'; + this.path = opts.path || '/'; this.protocol = opts.protocol === 'http' ? http : https; this.batchedCalls = null; this.disableAgent = opts.disableAgent || false; @@ -75,7 +76,7 @@ function rpc(request, callback) { var options = { host: self.host, - path: '/', + path: self.path, method: 'POST', port: self.port, rejectUnauthorized: self.rejectUnauthorized,