try using parent endpoint's pathset if outbound context does not have a path to a router

pull/18/head
Jeff Becker 6 years ago
parent c9bfe640b7
commit dc47a0630b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1185,7 +1185,12 @@ namespace llarp
{
auto path = m_PathSet->GetPathByRouter(remoteIntro.router);
if(path == nullptr)
return;
{
// try parent as fallback
path = m_Endpoint->GetPathByRouter(remoteIntro.router);
if(path == nullptr)
return;
}
AsyncKeyExchange* ex =
new AsyncKeyExchange(m_Endpoint->RouterLogic(), m_Endpoint->Crypto(),

Loading…
Cancel
Save