diff options
author | Tim L <timo614@gmail.com> | 2017-11-15 22:58:11 -0500 |
---|---|---|
committer | Tim L <timo614@gmail.com> | 2017-11-17 16:23:41 -0500 |
commit | 23b6f685de3df9c073078bc60f6f87d7c8d6f8f7 (patch) | |
tree | 218486e11d34d8759d5d62b7e97ae4916a451194 /src/rpc/core_rpc_server.h | |
parent | Merge pull request #2818 (diff) | |
download | monero-23b6f685de3df9c073078bc60f6f87d7c8d6f8f7.tar.xz |
RPC: allow binding of restricted port in addition to core port
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r-- | src/rpc/core_rpc_server.h | 7 |
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; } |