mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Config improvements:
* More fine-grained Section mutators * Add remap for mapping legacy single sections to key value pairs * Add output stream operators for BasicConfig and Section * Allow section values to be overwritten from command line * Update rpc key/value configs from command line * Add RPC::Setup with defaults and remap legacy rpc sections
This commit is contained in:
@@ -344,6 +344,7 @@ int run (int argc, char** argv)
|
||||
if (vm.count ("rpc_ip"))
|
||||
{
|
||||
getConfig ().setRpcIpAndOptionalPort (vm ["rpc_ip"].as <std::string> ());
|
||||
getConfig().overwrite("rpc", "ip", vm["rpc_ip"].as<std::string>());
|
||||
}
|
||||
|
||||
// Override the RPC destination port number
|
||||
@@ -352,6 +353,7 @@ int run (int argc, char** argv)
|
||||
{
|
||||
// VFALCO TODO This should be a short.
|
||||
getConfig ().setRpcPort (vm ["rpc_port"].as <int> ());
|
||||
getConfig().overwrite("rpc", "port", vm["rpc_port"].as<std::string>());
|
||||
}
|
||||
|
||||
if (vm.count ("quorum"))
|
||||
|
||||
Reference in New Issue
Block a user