From 1c2b5e885ff76548e8ae4aa97693ddbf419339f5 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 9 Jul 2025 18:57:09 +0200 Subject: [PATCH] Doc --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 483bfb4fd72..725e0503efe 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -4817,7 +4817,7 @@ function getUserRemoteIP($trusted = 0) if ($trusted) { // Return only IP we can rely on (not spoofable by the client) $ip = (empty($_SERVER['REMOTE_ADDR']) ? '' : $_SERVER['REMOTE_ADDR']); // value may be the IP of a proxy // Note that if apache module remoteip has been enabled, REMOTE_ADDR can contain the real client (the value from cloudFlare HTTP_CF_CONNECTING_IP for example) - // if the proxy were added in the list of trusted proxy. + // This can happen if the proxy were added in the list of trusted proxy. return $ip; }