Log IP addresses with blocks to detect spammers

pull/5/head
Péter Szilágyi 7 years ago committed by EOS Classic
parent 31a3f84214
commit bc4b0b9ce3
No known key found for this signature in database
GPG Key ID: 0D626A44301D8C5E
  1. 2
      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();
}

Loading…
Cancel
Save