aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-13 14:16:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-20 02:34:24 +0000
commitfb9ef24267662cd0311b9d622313df2a2e39adc9 (patch)
treee8eb768d67be6de865b4ad6fded1ba8c261dbe8c /src/cryptonote_config.h
parentMerge pull request #7131 (diff)
downloadmonero-fb9ef24267662cd0311b9d622313df2a2e39adc9.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.h2
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
{