From 5870b850140727dfaed4e43f4edbfdc9b94b371e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 18 Aug 2017 10:51:48 +0300 Subject: [PATCH] Log IP addresses with blocks to detect spammers --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 676cfdb..04fe8e5 100644 --- a/app.js +++ b/app.js @@ -196,7 +196,7 @@ api.on('connection', function (spark) data: stats }); - console.success('API', 'BLK', 'Block:', data.block['number'], 'from:', data.id); + console.success('API', 'BLK', 'Block:', data.block['number'], 'from:', data.id, 'ip:', spark.address.ip); Nodes.getCharts(); }