Skip to content

Commit 554bd24

Browse files
committed
partial bitcoin#24468: improve -onlynet help and related tor/i2p documentation
includes: - a1db99a (excl. changes to doc/ p2p-bad-ports.md)
1 parent 5436b6a commit 554bd24

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/i2p.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ logging` for more information.
5858
-onlynet=i2p
5959
```
6060

61-
Make outgoing connections only to I2P addresses. Incoming connections are not
62-
affected by this option. It can be specified multiple times to allow multiple
63-
network types, e.g. onlynet=onion, onlynet=i2p.
61+
Make automatic outbound connections only to I2P addresses. Inbound and manual
62+
connections are not affected by this option. It can be specified multiple times
63+
to allow multiple networks, e.g. onlynet=onion, onlynet=i2p.
6464

6565
I2P support was added to Dash Core in version 20.0 and there may be fewer I2P
6666
peers than Tor or IP ones. Therefore, using I2P alone without other networks may

doc/tor.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ outgoing connections, but more is possible.
4848
-seednode=X SOCKS5. In Tor mode, such addresses can also be exchanged with
4949
other P2P nodes.
5050

51-
-onlynet=onion Make outgoing connections only to .onion addresses. Incoming
52-
connections are not affected by this option. This option can be
53-
specified multiple times to allow multiple network types, e.g.
54-
onlynet=onion, onlynet=i2p.
51+
-onlynet=onion Make automatic outbound connections only to .onion addresses.
52+
Inbound and manual connections are not affected by this option.
53+
It can be specified multiple times to allow multiple networks,
54+
e.g. onlynet=onion, onlynet=i2p.
5555

5656
An example how to start the client if the Tor proxy is running on local host on
5757
port 9050 and only allows .onion nodes to connect:

src/init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ void SetupServerArgs(NodeContext& node)
584584
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);
585585
argsman.AddArg("-i2psam=<ip:port>", "I2P SAM proxy to reach I2P peers and accept I2P connections (default: none)", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
586586
argsman.AddArg("-i2pacceptincoming", strprintf("Whether to accept inbound I2P connections (default: %i). Ignored if -i2psam is not set. Listening for inbound I2P connections is done through the SAM proxy, not by binding to a local address and port.", DEFAULT_I2P_ACCEPT_INCOMING), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
587-
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);
587+
argsman.AddArg("-onlynet=<net>", "Make automatic outbound connections only to network <net> (" + Join(GetNetworkNames(), ", ") + "). Inbound and manual connections are not affected by this option. It can be specified multiple times to allow multiple networks.", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
588588
argsman.AddArg("-peerblockfilters", strprintf("Serve compact block filters to peers per BIP 157 (default: %u)", DEFAULT_PEERBLOCKFILTERS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
589589
argsman.AddArg("-peerbloomfilters", strprintf("Support filtering of blocks and transaction with bloom filters (default: %u)", DEFAULT_PEERBLOOMFILTERS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
590590
argsman.AddArg("-peertimeout=<n>", strprintf("Specify a p2p connection timeout delay in seconds. After connecting to a peer, wait this amount of time before considering disconnection based on inactivity (minimum: 1, default: %d)", DEFAULT_PEER_CONNECT_TIMEOUT), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);

0 commit comments

Comments
 (0)