mirror of
https://github.com/monero-project/monero.git
synced 2025-06-04 15:18:55 -04:00
Bans for RPC connections
Make bans control RPC sessions too. And auto-ban some bad requests. Drops HTTP connections whenever response code is 500.
This commit is contained in:
parent
6335509727
commit
a182df21d0
5 changed files with 32 additions and 2 deletions
|
@ -577,6 +577,10 @@ namespace net_utils
|
|||
if (query_info.m_http_method != http::http_method_options)
|
||||
{
|
||||
res = handle_request(query_info, response);
|
||||
if (response.m_response_code == 500)
|
||||
{
|
||||
m_want_close = true; // close on all "Internal server error"s
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue