Skip to content

Commit b5d0892

Browse files
committed
removed automatic hostname to ip translation
1 parent 8c3dcd8 commit b5d0892

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Network/Bolt/BoltDriver.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,6 @@ public function aquireSession(): SessionInterface
5555
return $this->session;
5656
}
5757

58-
$url = $this->parsedUrl['host'];
59-
$isIP = (bool) ip2long($url);
60-
if (!$isIP) {
61-
$ip = gethostbyname($url);
62-
} else {
63-
$ip = $url;
64-
}
65-
$this->parsedUrl['host'] = $ip;
6658
try {
6759
$sock = new StreamSocket($this->parsedUrl['host'], $this->parsedUrl['port'] ?? self::DEFAULT_TCP_PORT);
6860
$options = $this->injections->sslContextOptions();

0 commit comments

Comments
 (0)