merged fix from RC_0_16

This commit is contained in:
Arvid Norberg 2013-11-23 11:06:35 +00:00
parent ecb87b003b
commit f9d3571915
1 changed files with 2 additions and 1 deletions

View File

@ -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 (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 // don't allow multiple entries from IPs very close to each other
std::vector<observer_ptr>::iterator j = std::find_if( std::vector<observer_ptr>::iterator j = std::find_if(