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

prune nodedb as client and service node with no whitelist

This commit is contained in:
Jeff Becker 2020-03-08 08:05:13 -04:00
parent f3d23d6fb6
commit 327ab6f178
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -737,6 +737,14 @@ namespace llarp
return !_rcLookupHandler.RemoteIsAllowed(rc.pubkey);
});
}
else
{
nodedb()->RemoveIf([&](const RouterContact &rc) -> bool {
if(IsBootstrapNode(rc.pubkey))
return false;
return not rc.IsPublicRouter();
});
}
_linkManager.CheckPersistingSessions(now);