always use random paths for lookups

pull/502/head
Jeff 6 years ago
parent 3783fb0e14
commit 95119a0fe1

@ -1206,25 +1206,6 @@ namespace llarp
return false;
}
{
RouterID endpoint = path->Endpoint();
auto itr = m_ServiceLookupFails.find(endpoint);
if(itr != m_ServiceLookupFails.end())
{
path = PickRandomEstablishedPath();
}
}
if(!path)
{
path = PickRandomEstablishedPath();
if(!path)
{
llarp::LogError(Name(), "no working paths for lookup");
hook(remote, nullptr);
return false;
}
}
HiddenServiceAddressLookup* job = new HiddenServiceAddressLookup(
this,
std::bind(&Endpoint::OnLookup, this, std::placeholders::_1,
@ -1551,7 +1532,7 @@ namespace llarp
else
{
llarp::LogInfo(Name(), " updating introset");
UpdateIntroSet(false);
UpdateIntroSet(true);
}
return shiftedIntro;
}

Loading…
Cancel
Save