From f9d3571915d0148ff30c52b479128dea18036e52 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 23 Nov 2013 11:06:35 +0000 Subject: [PATCH] merged fix from RC_0_16 --- src/kademlia/traversal_algorithm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kademlia/traversal_algorithm.cpp b/src/kademlia/traversal_algorithm.cpp index e5fd19a8e..ee6a86291 100644 --- a/src/kademlia/traversal_algorithm.cpp +++ b/src/kademlia/traversal_algorithm.cpp @@ -127,7 +127,8 @@ void traversal_algorithm::add_entry(node_id const& id, udp::endpoint addr, unsig if (i == m_results.end() || (*i)->id() != id) { - if (m_node.settings().restrict_search_ips) + if (m_node.settings().restrict_search_ips + && !(flags & observer::flag_initial)) { // don't allow multiple entries from IPs very close to each other std::vector::iterator j = std::find_if(