Do not absolutely protect local peers from eviction.
commit1e9613ac090ee82f52e1d02a622358b2a1085249
authorGregory Maxwell <greg@xiph.org>
Thu, 28 Jan 2016 22:44:14 +0000 (28 22:44 +0000)
committerMarcoFalke <falke.marco@gmail.com>
Mon, 1 Feb 2016 14:31:17 +0000 (1 15:31 +0100)
treea8e6ba754e3edb0683aeb2df2c2efbfadcb59b22
parent5d743099b5fe77ba423110bea4f5dfd854fef3b2
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)
src/net.cpp