prune nodedb as client and service node with no whitelist

pull/1171/head
Jeff Becker 4 years ago
parent f3d23d6fb6
commit 327ab6f178
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

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

Loading…
Cancel
Save