mirror of https://github.com/oxen-io/lokinet
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:
parent
cf0349c259
commit
99379c5def
|
@ -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…
Reference in New Issue