Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
Community Edition
-
None
-
PHP (FPM) 7.2.3, Ubuntu Linux 16.04.4
Description
Hey There,
I just wanted to suggest an improvement. I run a local instance on my server and noticed that when the subdomain I have my instance running on through the cloudflare reverse proxy, that the logged IP addresses show the reverse proxy rather than the user's actual address.
Could a small tweak be appended to the code to replace the `
$_SERVER["REMOTE_ADDR"] |
to a null coalesce operator to support this?
$_SERVER["HTTP_CF_CONNECTING_IP"] ?? $_SERVER["REMOTE_ADDR"] |
Regards,
Ely.