daemon: run with -rpc-payment-address and --rpc-restricted-bind-port

This commit is contained in:
moneromooo-monero
2019-11-29 20:05:26 +00:00
parent 411f1b0ee3
commit 5f2a32c15a
4 changed files with 11 additions and 7 deletions

View File

@@ -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)
{