Skip to content

Commit 99ceaed

Browse files
[HttpClient] Fix primary_ip info when using amphp/http-client v5
1 parent e961ee6 commit 99ceaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Internal/AmpListenerV5.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function connectionAcquired(Request $request, Connection $connection, int
6666

6767
public function requestHeaderStart(Request $request, Stream $stream): void
6868
{
69-
$host = $stream->getRemoteAddress()->toString();
69+
$host = $stream->getRemoteAddress()->getAddress();
7070
$this->info['primary_ip'] = $host;
7171

7272
if (str_contains($host, ':')) {

0 commit comments

Comments
 (0)