mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
try using parent endpoint's pathset if outbound context does not have a path to a router
This commit is contained in:
parent
c9bfe640b7
commit
dc47a0630b
1 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue