This commit is contained in:
2021-08-05 18:52:37 +08:00
parent 4d6cb53bf2
commit f7ec2b6b98
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -358,7 +358,7 @@ class Request extends HttpService
/**
* @return mixed|null
*/
#[Pure] public function getIp(): string|null
public function getIp(): string|null
{
$headers = $this->headers->getHeaders();
if (!empty($headers['remoteip'])) return $headers['remoteip'];