always use random paths for lookups

This commit is contained in:
Jeff 2019-04-09 15:20:02 -04:00
parent 3783fb0e14
commit 95119a0fe1

View File

@ -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;
}