mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
mvc: backwards compatibility for Phalcon (https://github.com/opnsense/core/issues/6389), add missing getClientAddress
This commit is contained in:
parent
d5566b815c
commit
72120a6e09
@ -141,4 +141,9 @@ class Request
|
||||
{
|
||||
return json_decode($this->getRawBody(), true) ?? false;
|
||||
}
|
||||
|
||||
public function getClientAddress()
|
||||
{
|
||||
return explode(",", $_SERVER['REMOTE_ADDR'] ?? '')[0];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user