From 5f2a32c15ab0eef7bf0e0a0f9cd1362a1c456a22 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 29 Nov 2019 20:05:26 +0000 Subject: daemon: run with -rpc-payment-address and --rpc-restricted-bind-port --- src/rpc/core_rpc_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rpc/core_rpc_server.cpp') diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 9117b5b3a..ab7faf52b 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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) { -- cgit v1.2.3