mirror of
https://github.com/monero-project/monero.git
synced 2026-01-11 04:33:45 -08:00
daemon: run with -rpc-payment-address and --rpc-restricted-bind-port
This commit is contained in:
@@ -231,6 +231,7 @@ namespace cryptonote
|
||||
const boost::program_options::variables_map& vm
|
||||
, const bool restricted
|
||||
, const std::string& port
|
||||
, bool allow_rpc_payment
|
||||
)
|
||||
{
|
||||
m_restricted = restricted;
|
||||
@@ -242,7 +243,7 @@ namespace cryptonote
|
||||
return false;
|
||||
|
||||
std::string address = command_line::get_arg(vm, arg_rpc_payment_address);
|
||||
if (!address.empty())
|
||||
if (!address.empty() && allow_rpc_payment)
|
||||
{
|
||||
if (!m_restricted && nettype() != FAKECHAIN)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user