mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
always use random paths for lookups
This commit is contained in:
parent
3783fb0e14
commit
95119a0fe1
@ -1206,25 +1206,6 @@ namespace llarp
|
|||||||
return false;
|
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(
|
HiddenServiceAddressLookup* job = new HiddenServiceAddressLookup(
|
||||||
this,
|
this,
|
||||||
std::bind(&Endpoint::OnLookup, this, std::placeholders::_1,
|
std::bind(&Endpoint::OnLookup, this, std::placeholders::_1,
|
||||||
@ -1551,7 +1532,7 @@ namespace llarp
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
llarp::LogInfo(Name(), " updating introset");
|
llarp::LogInfo(Name(), " updating introset");
|
||||||
UpdateIntroSet(false);
|
UpdateIntroSet(true);
|
||||||
}
|
}
|
||||||
return shiftedIntro;
|
return shiftedIntro;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user