Merge pull request #1973 from majestrate/nodedb-logic-fix-2022-08-07

do not clear out entries that are valid from nodedb when we are a service node
This commit is contained in:
majestrate 2022-08-07 17:28:18 -04:00 committed by GitHub
commit c81e950d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -974,7 +974,7 @@ namespace llarp
// the whitelist enabled and we got the whitelist
// check against the whitelist and remove if it's not
// in the whitelist OR if there is no whitelist don't remove
if (_rcLookupHandler.SessionIsAllowed(rc.pubkey))
if (gotWhitelist and not _rcLookupHandler.SessionIsAllowed(rc.pubkey))
{
log::debug(logcat, "Removing {}: not a valid router", rc.pubkey);
return true;