aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-18 21:38:46 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-18 21:38:46 +0200
commit53e18cafdfb2bf24e8e0f8dd7355733eb31dc1c4 (patch)
tree55e6ece4dbd5865b373ddbfedaa669bbdbbd25b1 /src/daemon/command_server.cpp
parentMerge pull request #1101 (diff)
parentepee: optionally restrict HTTP service to a configurable user agent (diff)
downloadmonero-53e18cafdfb2bf24e8e0f8dd7355733eb31dc1c4.tar.xz
Merge pull request #1102v0.10.0
eeb2bbc epee: optionally restrict HTTP service to a configurable user agent (moneromooo-monero)
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r--src/daemon/command_server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index ce8ac44fc..2c3c54841 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -37,10 +37,11 @@ namespace p = std::placeholders;
t_command_server::t_command_server(
uint32_t ip
, uint16_t port
+ , const std::string &user_agent
, bool is_rpc
, cryptonote::core_rpc_server* rpc_server
)
- : m_parser(ip, port, is_rpc, rpc_server)
+ : m_parser(ip, port, user_agent, is_rpc, rpc_server)
, m_command_lookup()
, m_is_rpc(is_rpc)
{