mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
don't use endpoint's paths
This commit is contained in:
parent
01445399f0
commit
50f37d8ede
@ -1569,19 +1569,18 @@ namespace llarp
|
|||||||
if(remoteIntro.ExpiresSoon(now))
|
if(remoteIntro.ExpiresSoon(now))
|
||||||
{
|
{
|
||||||
// shift intro
|
// shift intro
|
||||||
MarkCurrentIntroBad(now);
|
if(MarkCurrentIntroBad(now))
|
||||||
|
{
|
||||||
|
llarp::LogInfo("intro shifted");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto path = m_PathSet->GetNewestPathByRouter(remoteIntro.router);
|
auto path = m_PathSet->GetNewestPathByRouter(remoteIntro.router);
|
||||||
if(!path)
|
if(!path)
|
||||||
{
|
{
|
||||||
path = m_Endpoint->GetNewestPathByRouter(remoteIntro.router);
|
llarp::LogError("cannot encrypt and send: no path for intro ",
|
||||||
if(!path)
|
remoteIntro);
|
||||||
{
|
|
||||||
llarp::LogError("cannot encrypt and send: no path for intro ",
|
return;
|
||||||
remoteIntro);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_DataHandler->GetCachedSessionKeyFor(f.T, shared))
|
if(m_DataHandler->GetCachedSessionKeyFor(f.T, shared))
|
||||||
|
Loading…
Reference in New Issue
Block a user