Merge pull request #7619
2a20434
Fix monerod --rpc-ssl disabled (Lee Clagett)
This commit is contained in:
commit
dcba757dd2
@ -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