From 5333a3277fb9ecff9a8c855ae119304985d443ac Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 29 Jan 2025 18:19:33 +0000 Subject: [PATCH] Read remote address from the right place. --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index a892175b..2c2ac1cf 100644 --- a/public/index.php +++ b/public/index.php @@ -57,7 +57,7 @@ elseif(filter_has_var(INPUT_COOKIE, 'msz_uid') && filter_has_var(INPUT_COOKIE, ' $userInfo = null; $sessionInfo = null; $userInfoReal = null; -$remoteAddr = (string)filter_input(INPUT_GET, 'REMOTE_ADDR'); +$remoteAddr = (string)filter_input(INPUT_SERVER, 'REMOTE_ADDR'); if($tokenInfo->hasUserId && $tokenInfo->hasSessionToken) { $tokenBuilder = new AuthTokenBuilder($tokenInfo);