Skip to content

Commit

Permalink
Do not absolutely protect local peers from eviction.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gmaxwell committed Jan 28, 2016
1 parent cb83beb commit 46dbcd4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,8 +884,6 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) {
continue;
if (node->fDisconnect)
continue;
if (node->addr.IsLocal())
continue;
vEvictionCandidates.push_back(CNodeRef(node));
}
}
Expand Down

0 comments on commit 46dbcd4

Please sign in to comment.