Archived
1
0
Fork 0

app/listeners/ActivityLog.php: pass true to getClientAddress() so it looks for X-Forwarded-For header.

This commit is contained in:
Henrik Hautakoski 2022-08-26 20:47:27 +02:00
parent fa28394a83
commit ee5c7719cb

View file

@ -67,7 +67,7 @@ class ActivityLog extends Injectable
protected function _log(User $user, $message)
{
$ip = (new \Phalcon\Http\Request())->getClientAddress();
$ip = (new \Phalcon\Http\Request())->getClientAddress(true);
return (new ActivityLogger())->assign([
'user_id' => $user->getId(),