Log IP addresses with blocks to detect spammers
This commit is contained in:
parent
31a3f84214
commit
bc4b0b9ce3
2
app.js
2
app.js
@ -196,7 +196,7 @@ api.on('connection', function (spark)
|
|||||||
data: stats
|
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();
|
Nodes.getCharts();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user