aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_setban.py
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2021-01-04 18:37:52 +0100
committerVasil Dimov <vd@FreeBSD.org>2021-01-10 15:51:15 +0100
commit94d335da7f8232bc653c9b08b0a33b517b4c98ad (patch)
tree6a41720c136a83ad30c1a8dadde611629cb3f1d0 /test/functional/rpc_setban.py
parentbc8ada1c15345d14e324aee68488c8aa8a75cae0 (diff)
downloadbitcoin-94d335da7f8232bc653c9b08b0a33b517b4c98ad.tar.xz
net: allow CSubNet of non-IP networks
Allow creation of valid `CSubNet` objects of non-IP networks and only match the single address they were created from (like /32 for IPv4 or /128 for IPv6). This fixes a deficiency in `CConnman::DisconnectNode(const CNetAddr& addr)` and in `BanMan` which assume that creating a subnet from any address using the `CSubNet(CNetAddr)` constructor would later match that address only. Before this change a non-IP subnet would be invalid and would not match any address.
Diffstat (limited to 'test/functional/rpc_setban.py')
0 files changed, 0 insertions, 0 deletions