From e401d6e1aa9f0de377d494c4a4ad5611b1cd6f44 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 28 Feb 2018 00:04:48 +0300 Subject: [PATCH] RPC: Show correct port in HelpExampleRpc --- src/rpc/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index df52532ac6..bf4f30ea85 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -516,7 +516,8 @@ std::string HelpExampleCli(const std::string& methodname, const std::string& arg std::string HelpExampleRpc(const std::string& methodname, const std::string& args) { return "> curl --user myusername --data-binary '{\"jsonrpc\": \"1.0\", \"id\":\"curltest\", " - "\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;' http://127.0.0.1:9998/\n"; + "\"method\": \"" + methodname + "\", \"params\": [" + args + "] }' -H 'content-type: text/plain;'" + " http://127.0.0.1:" + strprintf("%d", GetArg("-rpcport", BaseParams().RPCPort())) + "/\n"; } void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface)