get_user_ip: remove REMOTEADDR for the time being
This commit is contained in:
parent
a8302fb253
commit
4e3ef7a4dd
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue