461@@ -462,7 +462,7 @@ void SetupServerArgs(ArgsManager& argsman)
462 argsman.AddArg("-onion=<ip:port>", "Use separate SOCKS5 proxy to reach peers via Tor onion services, set -noonion to disable (default: -proxy)", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
463 argsman.AddArg("-i2psam=<ip:port>", "I2P SAM proxy to reach I2P peers and accept I2P connections (default: none)", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
464 argsman.AddArg("-i2pacceptincoming", "If set and -i2psam is also set then incoming I2P connections are accepted via the SAM proxy. If this is not set but -i2psam is set then only outgoing connections will be made to the I2P network. Ignored if -i2psam is not set. Listening for incoming I2P connections is done through the SAM proxy, not by binding to a local address and port (default: 1)", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
465- argsman.AddArg("-onlynet=<net>", "Make automatic outgoing connections only through network <net> (" + Join(GetNetworkNames(), ", ") + "). Incoming connections are not affected by this option. This option can be specified multiple times to allow multiple networks.", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
466+ argsman.AddArg("-onlynet=<net>", "Make automatic outbound connections only through network <net> (" + Join(GetNetworkNames(), ", ") + "). Inbound and manual connections are not affected by this option. This option can be specified multiple times to allow multiple networks.", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
nit: “only through network”… hmm, what about making connections to IPv4 addresses through the Tor network? Could this be misinterpreted as “onlynet=onion will also make connections to IPv4 as long as it is through Tor”?
Is “only to network” better wording?
I’m going to propose this documentation in another pull for potential backport to v23 if it doesn’t make the branch-off (and drop it here); will look at adding your suggestion there.
nit: “only through network”… hmm, what about making connections to IPv4 addresses through the Tor network? Could this be misinterpreted as “onlynet=onion will also make connections to IPv4 as long as it is through Tor”?
Is “only to network” better wording?
Agreed.
and we already use “to” here in doc/tor.md and doc/i2p.md, so good call.