aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_config.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2019-06-13 08:47:06 +0100
committerHoward Chu <hyc@symas.com>2019-06-16 11:38:08 +0100
commita182df21d0760e037219a6ae0a31b26b00489f22 (patch)
treebe176e7cfff73cdde8a110abcad57bd51bb21630 /src/cryptonote_config.h
parentMerge pull request #5641 (diff)
downloadmonero-a182df21d0760e037219a6ae0a31b26b00489f22.tar.xz
Bans for RPC connections
Make bans control RPC sessions too. And auto-ban some bad requests. Drops HTTP connections whenever response code is 500.
Diffstat (limited to '')
-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 56b6a63b7..678148942 100644
--- a/src/cryptonote_config.h
+++ b/src/cryptonote_config.h
@@ -128,6 +128,8 @@
#define P2P_SUPPORT_FLAG_FLUFFY_BLOCKS 0x01
#define P2P_SUPPORT_FLAGS P2P_SUPPORT_FLAG_FLUFFY_BLOCKS
+#define RPC_IP_FAILS_BEFORE_BLOCK 3
+
#define ALLOW_DEBUG_COMMANDS
#define CRYPTONOTE_NAME "bitmonero"