diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-01-28 22:44:14 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2016-01-28 22:45:22 +0000 |
commit | 46dbcd4833115401fecbb052365b4c7725874414 (patch) | |
tree | 8a715524ea32c25ff055ad2d79bac29fb65ed435 | |
parent | cb83beb3759b9bd19cc13b1e3dd589349787ac3e (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.
-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 8abfc4b430..b022255bdf 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -884,8 +884,6 @@ static bool AttemptToEvictConnection(bool fPreferNewConnection) { continue; if (node->fDisconnect) continue; - if (node->addr.IsLocal()) - continue; vEvictionCandidates.push_back(CNodeRef(node)); } } |