From c3be041009a4eac44e1e1cb3701d228647e2c644 Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 13 Jun 2015 06:16:29 +0300 Subject: [PATCH 1/3] updated trusted nodes --- lib/utils/config.js | 17 +++++++++-------- src/js/directives.js | 3 ++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/utils/config.js b/lib/utils/config.js index a4559bd..b9ac801 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -1,13 +1,14 @@ var trusted = [ - '54.94.239.50', '52.16.188.185', - '52.4.40.229', - '52.4.131.128', - '52.0.243.36', - '52.4.180.23', - '52.5.60.7', - '52.5.26.21', - '52.5.25.137', + '54.94.239.50', + '52.7.164.228', + '52.7.84.201', + '54.164.66.158', + '54.172.106.147', + '54.165.231.82', + '54.165.244.62', + '54.165.246.230', + '54.165.236.161', '::ffff:127.0.0.1', ]; diff --git a/src/js/directives.js b/src/js/directives.js index 2774f53..6ef7632 100644 --- a/src/js/directives.js +++ b/src/js/directives.js @@ -296,7 +296,8 @@ angular.module('netStatsApp.directives', []) scope: { data: '=' }, - link: function(scope, element, attrs) { + link: function(scope, element, attrs) + { var margin = {top: 0, right: 0, bottom: 0, left: 0}; var width = 280 - margin.left - margin.right, height = 63 - margin.top - margin.bottom; From 79bc55d0e61527e82d3b598bc61042fc68b31bfb Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 13 Jun 2015 06:42:06 +0300 Subject: [PATCH 2/3] added max http sockets 50 --- app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index d6c0aef..722f4a5 100644 --- a/app.js +++ b/app.js @@ -1,7 +1,7 @@ var _ = require('lodash'); var logger = require('./lib/utils/logger'); var chalk = require('chalk'); - +var http = require('http'); var WS_SECRET = process.env.WS_SECRET || "eth-net-stats-has-a-secret"; @@ -10,11 +10,12 @@ var WS_SECRET = process.env.WS_SECRET || "eth-net-stats-has-a-secret"; if( process.env.NODE_ENV !== 'production' ) { var app = require('./lib/express'); - server = require('http').createServer(app); + server = http.createServer(app); } else - server = require('http').createServer(); + server = http.createServer(); +http.globalAgent.maxSockets = 50; // Init socket vars var Primus = require('primus'); From 9b7efefb704ea0b4b53d5e09919a10acf0f778c7 Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 13 Jun 2015 07:18:08 +0300 Subject: [PATCH 3/3] removed http.globalAgent.maxSockets --- app.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/app.js b/app.js index 722f4a5..b337c7e 100644 --- a/app.js +++ b/app.js @@ -15,8 +15,6 @@ if( process.env.NODE_ENV !== 'production' ) else server = http.createServer(); -http.globalAgent.maxSockets = 50; - // Init socket vars var Primus = require('primus'); var api;