1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

please don't work

This commit is contained in:
Jeff Becker 2019-06-05 16:19:53 -04:00
parent c034f33ed2
commit 92f8c059e9
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -1848,7 +1848,13 @@ namespace llarp
bool
Router::HasSessionTo(const RouterID &remote) const
{
return validRouters.find(remote) != validRouters.end();
for(const auto & link : outboundLinks)
if(link->HasSessionTo(remote))
return true;
for(const auto & link : inboundLinks)
if(link->HasSessionTo(remote))
return true;
return false;
}
void