aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_proxy.py
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-08-30 14:33:29 +0200
committerVasil Dimov <vd@FreeBSD.org>2021-11-24 12:44:05 +0100
commite53a8505dbb6f9deaae8ac82793a4fb760a1e0a6 (patch)
tree40507a94035ee59351b4a7008616b825a5b32ef6 /test/functional/feature_proxy.py
parent9394964f6b9d1cf1220a4eca17ba18dc49ae876d (diff)
downloadbitcoin-e53a8505dbb6f9deaae8ac82793a4fb760a1e0a6.tar.xz
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
Diffstat (limited to 'test/functional/feature_proxy.py')
-rwxr-xr-xtest/functional/feature_proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_proxy.py b/test/functional/feature_proxy.py
index 7d9e5b70fc..fb0f6d7cb7 100755
--- a/test/functional/feature_proxy.py
+++ b/test/functional/feature_proxy.py
@@ -280,7 +280,7 @@ class ProxyTest(BitcoinTestFramework):
n3 = networks_dict(self.nodes[3].getnetworkinfo())
assert_equal(NETWORKS, n3.keys())
for net in NETWORKS:
- if net == NET_I2P:
+ if net == NET_I2P or net == NET_ONION:
expected_proxy = ''
else:
expected_proxy = f'[{self.conf3.addr[0]}]:{self.conf3.addr[1]}'