Optional DNS based blocklist

If enabled, pulls IPs to block on blocklist.moneropulse.*, and
blocks then for 8 days (so IPs dropping from the list will
eventually get unblocked, and DNS failures don't result in
instant clearing of the blocklist).

Enable with --enable-dns-blocklist
This commit is contained in:
moneromooo-monero 2020-12-13 14:16:03 +00:00
parent ebdc617408
commit e9abfea165
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 67 additions and 5 deletions

View file

@ -197,6 +197,8 @@
#define RPC_CREDITS_PER_HASH_SCALE ((float)(1<<24))
#define DNS_BLOCKLIST_LIFETIME (86400 * 8)
// New constants are intended to go here
namespace config
{