mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
@@ -1019,7 +1019,22 @@ int RPCCall::fromCommandLine (const std::vector<std::string>& vCmd)
|
||||
}
|
||||
else
|
||||
{
|
||||
auto const setup = setup_ServerHandler(getConfig(), std::cerr);
|
||||
ServerHandler::Setup setup;
|
||||
try
|
||||
{
|
||||
std::stringstream ss;
|
||||
setup = setup_ServerHandler(getConfig(), ss);
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
// ignore any exceptions, so the command
|
||||
// line client works without a config file
|
||||
}
|
||||
|
||||
if (getConfig().rpc_ip)
|
||||
setup.client.ip = getConfig().rpc_ip->to_string();
|
||||
if (getConfig().rpc_port)
|
||||
setup.client.port = *getConfig().rpc_port;
|
||||
|
||||
Json::Value jvParams (Json::arrayValue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user