diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-11-29 12:05:05 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2022-02-11 15:21:51 +0100 |
commit | d0abce9a50dd4f507e3a30348eabffb7552471d5 (patch) | |
tree | 829da0c97825148d7ff925c84179b29a4791fd63 /src/netaddress.h | |
parent | 2e38a0e6865187d1f0d0f016d3df7cce414a7c4f (diff) |
net: include the port when deciding a relay destination
In `PeerManagerImpl::RelayAddress()` we used just the hash of the
address that is being relayed to decide where to relay it to. Include
the port in that hash, so that e.g. `1.1.1.1:5555` and `1.1.1.1:6666`
get relayed to different peers. Those are two different, distinct
services after all.
Diffstat (limited to 'src/netaddress.h')
0 files changed, 0 insertions, 0 deletions