don't kill nodes as service node

This commit is contained in:
Jeff Becker 2019-05-12 13:54:30 -04:00
parent eb5afb41a1
commit b5602228a3
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
1 changed files with 2 additions and 0 deletions

View File

@ -1232,12 +1232,14 @@ namespace llarp
LogError("Failed to update our RC");
}
/*
// kill nodes that are not allowed by network policy
nodedb()->RemoveIf([&](const RouterContact &rc) -> bool {
if(IsBootstrapNode(rc.pubkey))
return false;
return !ConnectionToRouterAllowed(rc.pubkey);
});
*/
// only do this as service node
// client endpoints do this on their own