mirror of https://github.com/oxen-io/lokinet
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:
commit
c81e950d13
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue