establish outbound sessions when we have no outbound session.

when we have an inbound session we still want to make an outbound session.
pull/1693/head
Jeff Becker 3 years ago
parent cf0349c259
commit 99379c5def
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -244,10 +244,6 @@ namespace llarp
{
_loop->call([this, router] { DoEstablish(router); });
}
else if (_linkManager->HasSessionTo(router))
{
FinalizeRequest(router, SessionResult::Establish);
}
else
{
FinalizeRequest(router, SessionResult::NoLink);
@ -259,7 +255,7 @@ namespace llarp
{
if (router == us or not _rcLookup->SessionIsAllowed(router))
return false;
if (_linkManager->HasSessionTo(router))
if (_linkManager->HasOutboundSessionTo(router))
return false;
if (_router->IsServiceNode())
return true;

Loading…
Cancel
Save