From e53a8505dbb6f9deaae8ac82793a4fb760a1e0a6 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Mon, 30 Aug 2021 14:33:29 +0200 Subject: net: respect -onlynet= when making outbound connections Do not make outbound connections to hosts which belong to a network which is restricted by `-onlynet`. This applies to hosts that are automatically chosen to connect to and to anchors. This does not apply to hosts given to `-connect`, `-addnode`, `addnode` RPC, dns seeds, `-seednodes`. Fixes https://github.com/bitcoin/bitcoin/issues/13378 Fixes https://github.com/bitcoin/bitcoin/issues/22647 Supersedes https://github.com/bitcoin/bitcoin/pull/22651 --- doc/i2p.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'doc/i2p.md') diff --git a/doc/i2p.md b/doc/i2p.md index 5f631c11ca..ee650f3999 100644 --- a/doc/i2p.md +++ b/doc/i2p.md @@ -67,11 +67,7 @@ logging` for more information. Make outgoing connections only to I2P addresses. Incoming connections are not affected by this option. It can be specified multiple times to allow multiple -network types, e.g. onlynet=ipv4, onlynet=ipv6, onlynet=onion, onlynet=i2p. - -Warning: if you use -onlynet with values other than onion, and the -onion or --proxy option is set, then outgoing onion connections will still be made; use --noonion or -onion=0 to disable outbound onion connections in this case. +network types, e.g. onlynet=onion, onlynet=i2p. I2P support was added to Bitcoin Core in version 22.0 and there may be fewer I2P peers than Tor or IP ones. Therefore, using I2P alone without other networks may -- cgit v1.2.3