Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,021 Lines • ▼ Show 20 Lines | #endif | ||||
gArgs.AddArg("-server", "Accept command line and JSON-RPC commands", | gArgs.AddArg("-server", "Accept command line and JSON-RPC commands", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ||||
gArgs.AddArg("-rest", | gArgs.AddArg("-rest", | ||||
strprintf("Accept public REST requests (default: %d)", | strprintf("Accept public REST requests (default: %d)", | ||||
DEFAULT_REST_ENABLE), | DEFAULT_REST_ENABLE), | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ||||
gArgs.AddArg( | gArgs.AddArg( | ||||
"-rpcbind=<addr>[:port]", | "-rpcbind=<addr>[:port]", | ||||
"Bind to given address to listen for JSON-RPC connections. This option " | "Bind to given address to listen for JSON-RPC connections. Do not " | ||||
"is ignored unless -rpcallowip is also passed. Port is optional and " | "expose the RPC server to untrusted networks such as the public " | ||||
"overrides -rpcport. Use [host]:port notation for IPv6. This option " | "internet! This option is ignored unless -rpcallowip is also passed. " | ||||
"can be specified multiple times (default: 127.0.0.1 and ::1 i.e., " | "Port is optional and overrides -rpcport. Use [host]:port notation " | ||||
"localhost, or if -rpcallowip has been specified, 0.0.0.0 and :: i.e., " | "for IPv6. This option can be specified multiple times (default: " | ||||
"all addresses)", | "127.0.0.1 and ::1 i.e., localhost)", | ||||
ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, | ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, | ||||
OptionsCategory::RPC); | OptionsCategory::RPC); | ||||
gArgs.AddArg("-rpccookiefile=<loc>", | gArgs.AddArg("-rpccookiefile=<loc>", | ||||
"Location of the auth cookie. Relative paths will be prefixed " | "Location of the auth cookie. Relative paths will be prefixed " | ||||
"by a net-specific datadir location. (default: data dir)", | "by a net-specific datadir location. (default: data dir)", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ||||
gArgs.AddArg("-rpcuser=<user>", "Username for JSON-RPC connections", | gArgs.AddArg("-rpcuser=<user>", "Username for JSON-RPC connections", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ArgsManager::ALLOW_ANY, OptionsCategory::RPC); | ||||
▲ Show 20 Lines • Show All 1,602 Lines • Show Last 20 Lines |