mirror of
https://github.com/monero-project/monero.git
synced 2025-08-04 21:24:12 -04:00
Merge pull request #6198
5f2a32c
daemon: run with -rpc-payment-address and --rpc-restricted-bind-port (moneromooo-monero)
This commit is contained in:
commit
39e1890276
4 changed files with 11 additions and 7 deletions
|
@ -236,6 +236,7 @@ namespace cryptonote
|
|||
const boost::program_options::variables_map& vm
|
||||
, const bool restricted
|
||||
, const std::string& port
|
||||
, bool allow_rpc_payment
|
||||
)
|
||||
{
|
||||
m_restricted = restricted;
|
||||
|
@ -247,7 +248,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)
|
||||
{
|
||||
|
|
|
@ -88,7 +88,8 @@ namespace cryptonote
|
|||
bool init(
|
||||
const boost::program_options::variables_map& vm,
|
||||
const bool restricted,
|
||||
const std::string& port
|
||||
const std::string& port,
|
||||
bool allow_rpc_payment
|
||||
);
|
||||
network_type nettype() const { return m_core.get_nettype(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue