Skip to content

Commit

Permalink
Request::getRemoteHost() does not perform DNS resolving [Closes #218]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 15, 2023
1 parent 95f918c commit ebdb825
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ public function getRemoteAddress(): ?string
*/
public function getRemoteHost(): ?string
{
if ($this->remoteHost === null && $this->remoteAddress !== null) {
$this->remoteHost = gethostbyaddr($this->remoteAddress);
}

return $this->remoteHost;
}

Expand Down

0 comments on commit ebdb825

Please sign in to comment.