don't use endpoint's paths

This commit is contained in:
Jeff 2018-11-03 09:35:54 -04:00
parent 01445399f0
commit 50f37d8ede

View File

@ -1569,20 +1569,19 @@ namespace llarp
if(remoteIntro.ExpiresSoon(now))
{
// shift intro
MarkCurrentIntroBad(now);
}
auto path = m_PathSet->GetNewestPathByRouter(remoteIntro.router);
if(!path)
if(MarkCurrentIntroBad(now))
{
path = m_Endpoint->GetNewestPathByRouter(remoteIntro.router);
llarp::LogInfo("intro shifted");
}
}
auto path = m_PathSet->GetNewestPathByRouter(remoteIntro.router);
if(!path)
{
llarp::LogError("cannot encrypt and send: no path for intro ",
remoteIntro);
return;
}
}
if(m_DataHandler->GetCachedSessionKeyFor(f.T, shared))
{