mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
Fix monerod --rpc-ssl disabled
This commit is contained in:
parent
5b8d714a4b
commit
2a20434705
@ -335,7 +335,7 @@ namespace cryptonote
|
||||
if (m_rpc_payment)
|
||||
m_net_server.add_idle_handler([this](){ return m_rpc_payment->on_idle(); }, 60 * 1000);
|
||||
|
||||
bool store_ssl_key = !restricted && rpc_config->ssl_options.auth.certificate_path.empty();
|
||||
bool store_ssl_key = !restricted && rpc_config->ssl_options && rpc_config->ssl_options.auth.certificate_path.empty();
|
||||
const auto ssl_base_path = (boost::filesystem::path{data_dir} / "rpc_ssl").string();
|
||||
if (store_ssl_key && boost::filesystem::exists(ssl_base_path + ".crt"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user