remove non public routers from nodedb

pull/1158/head
Jeff Becker 4 years ago
parent ef8570ff58
commit 08de84d40b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -732,6 +732,8 @@ namespace llarp
nodedb()->RemoveIf([&](const RouterContact &rc) -> bool {
if(IsBootstrapNode(rc.pubkey))
return false;
if(not rc.IsPublicRouter())
return true;
return !_rcLookupHandler.RemoteIsAllowed(rc.pubkey);
});
}

Loading…
Cancel
Save