Given I have this real-world example
const whitelist = new Set(['192.0.2.1', '192.0.2.2','192.0.2.3']) //hard-coded ip list
const clientIP = request.headers.get("Client-IP");
if (await isSiteDown(request) && !whitelist.has(clientIP))
{
return fetch('https://my-error-page.example.com');
}
return fetch(request)
I let's say user's ip is 192.0.2.4
and is not in the whitelist, would this still be in constant time search?