aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-26 10:17:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-26 10:17:03 +0000
commit6f5c129c922a2583b58d8609c1a1a9e078389937 (patch)
tree1cf7186b9e0a249657e98234ab1fa50fc6f708d6 /src/daemon/rpc_command_executor.cpp
parentMerge pull request #437 (diff)
downloadmonero-6f5c129c922a2583b58d8609c1a1a9e078389937.tar.xz
rpc: fix a few commands not working as command line
The method name to the "json_rpc" commands are names, not part of URLs.
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
-rw-r--r--src/daemon/rpc_command_executor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index b0fe5945b..38d20ec39 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -255,7 +255,7 @@ bool t_rpc_command_executor::print_connections() {
if (m_is_rpc)
{
- if (!m_rpc_client->json_rpc_request(req, res, "/get_connections", fail_message.c_str()))
+ if (!m_rpc_client->json_rpc_request(req, res, "get_connections", fail_message.c_str()))
{
return true;
}
@@ -880,7 +880,7 @@ bool t_rpc_command_executor::out_peers(uint64_t limit)
if (m_is_rpc)
{
- if (!m_rpc_client->json_rpc_request(req, res, "/out_peers", fail_message.c_str()))
+ if (!m_rpc_client->json_rpc_request(req, res, "out_peers", fail_message.c_str()))
{
return true;
}
@@ -959,7 +959,7 @@ bool t_rpc_command_executor::hard_fork_info(uint8_t version)
if (m_is_rpc)
{
- if (!m_rpc_client->json_rpc_request(req, res, "/hard_fork_info", fail_message.c_str()))
+ if (!m_rpc_client->json_rpc_request(req, res, "hard_fork_info", fail_message.c_str()))
{
return true;
}