Browse Source

Do not absolutely protect local peers from eviction.

With automatic tor HS support in place we should probably not be providing
 absolute protection for local peers, since HS inbound could be used to
 attack pretty easily.  Instead, this counts on the latency metric inside
 AttemptToEvictConnection to privilege actually local peers.
v1.0.9-lin
Gregory Maxwell 9 years ago
committed by Jack Grigg
parent
commit
35db253fb6
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 2
      src/net.cpp

2
src/net.cpp

@ -821,8 +821,6 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
continue;
if (node->fDisconnect)
continue;
if (node->addr.IsLocal())
continue;
vEvictionCandidates.push_back(CNodeRef(node));
}
}

Loading…
Cancel
Save