From 628b78ae8ac5e702c0f33c5231877e8405e1b417 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 21 Jan 2018 19:34:46 +1100 Subject: Fix in_peers/out_peers RPC operations Original implementations could never have worked. --- src/daemon/rpc_command_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index af9c05bc7..0ae0fd2cc 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -1262,7 +1262,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->rpc_request(req, res, "/out_peers", fail_message.c_str())) { return true; } @@ -1294,7 +1294,7 @@ bool t_rpc_command_executor::in_peers(uint64_t limit) if (m_is_rpc) { - if (!m_rpc_client->json_rpc_request(req, res, "in_peers", fail_message.c_str())) + if (!m_rpc_client->rpc_request(req, res, "/in_peers", fail_message.c_str())) { return true; } -- cgit v1.2.3