diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-13 14:16:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-20 02:09:58 +0000 |
commit | e9abfea165ff49c43f80c2678cda00136f7dc9ca (patch) | |
tree | 8dc94db791c678fbeb022b8e3eb87f868a15fdf2 /src/cryptonote_config.h | |
parent | Merge pull request #7102 (diff) | |
download | monero-e9abfea165ff49c43f80c2678cda00136f7dc9ca.tar.xz |
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
Diffstat (limited to 'src/cryptonote_config.h')
-rw-r--r-- | src/cryptonote_config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 21f2bf81e..97706f745 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -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 { |