From b1a34bc004828d73cd80d531f100504d58382b5a Mon Sep 17 00:00:00 2001 From: Daniel Foster Date: Mon, 21 Aug 2023 05:03:23 +0000 Subject: [PATCH] use X-Forwarded-For if available for ip queries --- engines/special/ip.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/special/ip.php b/engines/special/ip.php index 91a16f86..9885e831 100644 --- a/engines/special/ip.php +++ b/engines/special/ip.php @@ -1,9 +1,15 @@ array( - "response" => $_SERVER["REMOTE_ADDR"], + "response" => $ip, "source" => null ) );