aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-12-02 09:26:15 +0200
committerRiccardo Spagni <ric@spagni.net>2017-12-02 09:26:15 +0200
commit3052dab81d06e0e0d3124fdfd32f0983dec03886 (patch)
tree2b8988668e663b09c9fd5fb2b129c96900dc7b9e /src/rpc/core_rpc_server.h
parentMerge pull request #2833 (diff)
parentRPC: allow binding of restricted port in addition to core port (diff)
downloadmonero-3052dab81d06e0e0d3124fdfd32f0983dec03886.tar.xz
Merge pull request #2836
23b6f685 RPC: allow binding of restricted port in addition to core port (Tim L)
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r--src/rpc/core_rpc_server.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.h b/src/rpc/core_rpc_server.h
index 7f252258c..bf4371a4e 100644
--- a/src/rpc/core_rpc_server.h
+++ b/src/rpc/core_rpc_server.h
@@ -53,7 +53,9 @@ namespace cryptonote
public:
static const command_line::arg_descriptor<std::string> arg_rpc_bind_port;
+ static const command_line::arg_descriptor<std::string> arg_rpc_restricted_bind_port;
static const command_line::arg_descriptor<std::string> arg_testnet_rpc_bind_port;
+ static const command_line::arg_descriptor<std::string> arg_testnet_rpc_restricted_bind_port;
static const command_line::arg_descriptor<bool> arg_restricted_rpc;
typedef epee::net_utils::connection_context_base connection_context;
@@ -65,7 +67,10 @@ namespace cryptonote
static void init_options(boost::program_options::options_description& desc);
bool init(
- const boost::program_options::variables_map& vm
+ const boost::program_options::variables_map& vm,
+ const bool restricted,
+ const bool testnet,
+ const std::string& port
);
bool is_testnet() const { return m_testnet; }