255 | @@ -256,6 +256,7 @@ bool static Bind(const CService &addr, unsigned int flags) {
256 | strUsage += " -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)") + "\n";
257 | strUsage += " -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n";
258 | strUsage += " -rpcthreads=<n> " + _("Set the number of threads to service RPC calls (default: 4)") + "\n";
259 | + strUsage += " -rpcbind=<addr> " + _("Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6") + "\n";
Perhaps mention the default (default: bind to all interfaces) here?
Agreed; although the full behavior is more complicated than that
- unless -rpcallowip is specified, it binds to localhost
- if one or more -rpcallowip and one or more -rpcbind is specified, bind to those specific addresses
- if one or more -rpcallowip and no -rpcbind is specified, bind to all interfaces
But listing all of that in the command line options help is too verbose. (default: bind to all interfaces) might be enough as it is true unless the option is ignored.