mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 13:39:28 +00:00
rpc: fix a few commands not working as command line
The method name to the "json_rpc" commands are names, not part of URLs.
This commit is contained in:
parent
14dd279fe1
commit
6f5c129c92
1 changed files with 3 additions and 3 deletions
|
@ -255,7 +255,7 @@ bool t_rpc_command_executor::print_connections() {
|
||||||
|
|
||||||
if (m_is_rpc)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -880,7 +880,7 @@ bool t_rpc_command_executor::out_peers(uint64_t limit)
|
||||||
|
|
||||||
if (m_is_rpc)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -959,7 +959,7 @@ bool t_rpc_command_executor::hard_fork_info(uint8_t version)
|
||||||
|
|
||||||
if (m_is_rpc)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue