From 8692c068601b89e7f63e210f5b43a058fda4e35b Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 7 Apr 2016 12:47:34 -0300 Subject: [PATCH] fix for single host config --- lib/blockchainexplorers/insight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blockchainexplorers/insight.js b/lib/blockchainexplorers/insight.js index 34231f6..bdc68b7 100644 --- a/lib/blockchainexplorers/insight.js +++ b/lib/blockchainexplorers/insight.js @@ -155,7 +155,7 @@ Insight.prototype.estimateFee = function(nbBlocks, cb) { Insight.prototype.initSocket = function() { // sockets always use the first server on the pull - var socket = io.connect(this.hosts[0], { + var socket = io.connect(_.first([].concat(this.hosts)), { 'reconnection': true, }); return socket;