From 11b86be200c66a7ae070f64bc47c587b864f012f Mon Sep 17 00:00:00 2001 From: Sefinek Date: Thu, 10 Oct 2024 07:49:39 +0200 Subject: [PATCH] Fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 156fd37..7efa9ca 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ const reportIP = async (event, uri, country, hostname, endpoint, cycleErrorCount continue; } - const uri = `${event.hostname}${event.endpoint}`; + const uri = `${event.clientRequestHTTPHost}${event.clientRequestPath}`; if (whitelist.includes(uri)) return log('log', `Ignoring ${uri}...`); const reportedIPs = readReportedIPs();