From 9209880e9cd90762f344dbfeb3464c9f7e758a4b Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 16 Mar 2022 22:16:52 +0000 Subject: add a sanity check to RPC input data size reported by m31007 --- src/rpc/core_rpc_server.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rpc') 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 -- cgit v1.2.3