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:
parent
f3d23d6fb6
commit
327ab6f178
|
@ -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…
Reference in a new issue