diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-01-28 22:44:14 +0000 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-02-01 15:31:17 +0100 |
commit | 1e9613ac090ee82f52e1d02a622358b2a1085249 (patch) | |
tree | a8e6ba754e3edb0683aeb2df2c2efbfadcb59b22 /src | |
parent | 5d743099b5fe77ba423110bea4f5dfd854fef3b2 (diff) |
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.
(cherry picked from commit 46dbcd4833115401fecbb052365b4c7725874414)
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 48e9e10157..84c5644ccc 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -899,8 +899,6 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) { continue; if (node->fDisconnect) continue; - if (node->addr.IsLocal()) - continue; vEvictionCandidates.push_back(CNodeRef(node)); } } |