From 56a60fc484417cb10abbd66f4e98dafab1afe000 Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Fri, 29 Mar 2024 13:59:13 +0000 Subject: [PATCH] Fix index --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }