diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-09-18 21:38:46 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-09-18 21:38:46 +0200 |
| commit | 53e18cafdfb2bf24e8e0f8dd7355733eb31dc1c4 (patch) | |
| tree | 55e6ece4dbd5865b373ddbfedaa669bbdbbd25b1 /src/daemon/main.cpp | |
| parent | 5866d91b8242fc43dfe3c9c895d07a692ad4b586 (diff) | |
| parent | eeb2bbc0fcc9c5afa2c3aa12915b4d3f31115e56 (diff) | |
| download | monzero-core-53e18cafdfb2bf24e8e0f8dd7355733eb31dc1c4.tar.gz monzero-core-53e18cafdfb2bf24e8e0f8dd7355733eb31dc1c4.tar.xz monzero-core-53e18cafdfb2bf24e8e0f8dd7355733eb31dc1c4.zip | |
Merge pull request #1102v0.10.0
eeb2bbc epee: optionally restrict HTTP service to a configurable user agent (moneromooo-monero)
Diffstat (limited to 'src/daemon/main.cpp')
| -rw-r--r-- | src/daemon/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp index 93027a5d6..0895e1bf1 100644 --- a/src/daemon/main.cpp +++ b/src/daemon/main.cpp @@ -208,6 +208,7 @@ int main(int argc, char const * argv[]) { rpc_port_str = command_line::get_arg(vm, cryptonote::core_rpc_server::arg_testnet_rpc_bind_port); } + auto user_agent = command_line::get_arg(vm, cryptonote::core_rpc_server::arg_user_agent); uint32_t rpc_ip; uint16_t rpc_port; @@ -222,7 +223,7 @@ int main(int argc, char const * argv[]) return 1; } - daemonize::t_command_server rpc_commands{rpc_ip, rpc_port}; + daemonize::t_command_server rpc_commands{rpc_ip, rpc_port, user_agent}; if (rpc_commands.process_command_vec(command)) { return 0; |
