diff options
author | Howard Chu <hyc@symas.com> | 2019-06-13 08:47:06 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2019-06-16 11:38:08 +0100 |
commit | a182df21d0760e037219a6ae0a31b26b00489f22 (patch) | |
tree | be176e7cfff73cdde8a110abcad57bd51bb21630 /src/cryptonote_config.h | |
parent | Merge pull request #5641 (diff) | |
download | monero-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.h | 2 |
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" |