get_user_ip: remove REMOTEADDR for the time being

This commit is contained in:
Andrew Dolgov 2021-01-05 10:25:43 +03:00
parent a8302fb253
commit 4e3ef7a4dd
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class UserHelper {
}
static function get_user_ip() {
foreach (["HTTP_X_REAL_IP", "REMOTE_ADDR", "REMOTEADDR"] as $hdr) {
foreach (["HTTP_X_REAL_IP", "REMOTE_ADDR"] as $hdr) {
if (isset($_SERVER[$hdr]))
return $_SERVER[$hdr];
}