From 1d9c7bf42f7e8a9df67eb0054f4ae24bd088cc3f Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 8 Sep 2024 21:41:59 +0200 Subject: [PATCH] SEFINEK_API_SECRET --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f5ce3c2..fefcf90 100644 --- a/index.js +++ b/index.js @@ -100,7 +100,7 @@ const reportIP = async (event, country, hostname, endpoint, userAgent, cycleErro await clientIp.fetchIPAddress(); // Sefinek API - if (REPORT_TO_SEFINEK_API && SEFINEK_API_INTERVAL) { + if (REPORT_TO_SEFINEK_API && SEFINEK_API_INTERVAL && process.env.SEFINEK_API_SECRET) { setInterval(async () => await SefinekAPI(), SEFINEK_API_INTERVAL); }