diff --git a/bitcorenode/index.js b/bitcorenode/index.js index ee7c85d..a9b0059 100644 --- a/bitcorenode/index.js +++ b/bitcorenode/index.js @@ -81,7 +81,7 @@ Service.prototype._getConfiguration = function() { var providerOptions = { provider: 'insight', - url: 'http://localhost:' + self.node.port, + url: (self.node.https ? 'https://' : 'http://') + 'localhost:' + self.node.port, apiPrefix: '/insight-api' };