diff --git a/lib/PeerSync.js b/lib/PeerSync.js index ce1bf1a..5680939 100644 --- a/lib/PeerSync.js +++ b/lib/PeerSync.js @@ -44,7 +44,9 @@ function spec() { PeerSync.prototype.info = function() { return { - connected: this.connected + connected: this.connected, + host: this.peerdb[0].ipv4, + port: this.peerdb[0].port }; }; diff --git a/public/src/js/controllers/connection.js b/public/src/js/controllers/connection.js index e5dae0b..4b3cbc3 100644 --- a/public/src/js/controllers/connection.js +++ b/public/src/js/controllers/connection.js @@ -23,6 +23,8 @@ angular.module('insight.connection').controller('ConnectionController', PeerSync.get({}, function(peer) { $scope.apiOnline = peer.connected; + $scope.host = peer.host; + $scope.port = peer.port; }, function() { $scope.apiOnline = false; diff --git a/public/views/includes/connection.html b/public/views/includes/connection.html index 55bbea9..5430475 100644 --- a/public/views/includes/connection.html +++ b/public/views/includes/connection.html @@ -1,10 +1,23 @@
- -
+
+ Error! -

Can't connect to bitcoind to get live updates from the p2p network.

-

Can't connect to insight server. Attempting to reconnect...

-

Can't connect to internet. Please, check your connection.

+ +

+ Can't connect to bitcoind to get live updates from the p2p network. + (Tried connecting to bitcoind at {{host}}:{{port}} and failed.) +

+ +

+ Can't connect to insight server. Attempting to reconnect... +

+ +

+ Can't connect to internet. Please, check your connection. +

+