establish outbound sessions when we have no outbound session.

when we have an inbound session we still want to make an outbound session.
This commit is contained in:
Jeff Becker 2021-06-30 16:48:30 -04:00
parent cf0349c259
commit 99379c5def
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 1 additions and 5 deletions

View File

@ -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;