Log IP addresses with blocks to detect spammers

This commit is contained in:
Péter Szilágyi 2017-08-18 10:51:48 +03:00 committed by Ikmyeong Na
parent a4cede7016
commit 86fc78064d
No known key found for this signature in database
GPG Key ID: EC674310ADADE2CA

2
app.js
View File

@ -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();
}