This commit is contained in:
2020-12-25 15:57:52 +08:00
parent f18031c2c0
commit 2013129406
7 changed files with 91 additions and 89 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ class Request extends Application
/**
* @return mixed|null
*/
public function getIp()
public function getIp(): string|null
{
$headers = $this->headers->getHeaders();
if (!empty($headers['x-forwarded-for'])) return $headers['x-forwarded-for'];