aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-04-25 10:22:03 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-04-25 10:22:03 -0500
commit67e5ca9ad6f1c861ad315476a88f9d36c38a0abb (patch)
treee566972a68a03dd0447f8d1ab0cc3601c3bdf4d0 /src/rpc
parentMerge pull request #8260 (diff)
parentadd a sanity check to RPC input data size (diff)
downloadmonero-67e5ca9ad6f1c861ad315476a88f9d36c38a0abb.tar.xz
Merge pull request #8275
9209880 add a sanity check to RPC input data size (moneromooo-monero)
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index bbcfa6168..869040657 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -365,6 +365,8 @@ namespace cryptonote
std::move(rpc_config->access_control_origins), std::move(http_login), std::move(rpc_config->ssl_options)
);
+ m_net_server.get_config_object().m_max_content_length = MAX_RPC_CONTENT_LENGTH;
+
if (store_ssl_key && inited)
{
// new keys were generated, store for next run