diff --git a/src/index.ts b/src/index.ts index 5047c77..245fe56 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,9 +72,9 @@ export default { const object = await env.Content.get("leeches"); if (object != null) { - var leaches: string[] = await object.json(); + var leeches: string[] = await object.json(); - if (leaches.indexOf(ipAddress) > 0) { + if (leeches.indexOf(ipAddress) >= 0) { isLeech = true; } }