Skip to content

Commit 0f24022

Browse files
committed
Request::getRemoteHost() does not perform DNS resolving [Closes #218]
1 parent 74bdaf4 commit 0f24022

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Http/Request.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,6 @@ public function getRemoteAddress(): ?string
254254
*/
255255
public function getRemoteHost(): ?string
256256
{
257-
if ($this->remoteHost === null && $this->remoteAddress !== null) {
258-
$this->remoteHost = gethostbyaddr($this->remoteAddress);
259-
}
260-
261257
return $this->remoteHost;
262258
}
263259

0 commit comments

Comments
 (0)