Merge pull request #641 from majestrate/fix-big-ooooofff

correct function behavior
pull/643/head
Jeff 5 years ago committed by GitHub
commit 3a8ac333a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save