diff --git a/llarp/router/router.cpp b/llarp/router/router.cpp index c78e90ed0..62a42049d 100644 --- a/llarp/router/router.cpp +++ b/llarp/router/router.cpp @@ -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;