mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 13:19:32 -04:00
Hidden nodes always drop IP information from normal nodes.
This commit is contained in:
parent
e2a04c1baa
commit
a4d3848547
1 changed files with 6 additions and 1 deletions
|
@ -388,7 +388,12 @@ void p3discovery2::recvOwnContactInfo(const RsPeerId &fromId, const RsDiscContac
|
||||||
|
|
||||||
setPeerVersion(fromId, item->version);
|
setPeerVersion(fromId, item->version);
|
||||||
|
|
||||||
updatePeerAddresses(item);
|
// Hidden nodes do not need IP information. So that information is dropped.
|
||||||
|
// However, that doesn't mean hidden nodes do not know that information. Normally
|
||||||
|
// normal nodes should not send it, but old nodes still do.
|
||||||
|
|
||||||
|
if(!mPeerMgr->isHiddenNode(rsPeers->getOwnId()))
|
||||||
|
updatePeerAddresses(item);
|
||||||
|
|
||||||
// if the peer is not validated, we stop the exchange here
|
// if the peer is not validated, we stop the exchange here
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue