Skip to content

Commit e025b23

Browse files
[HttpClient] Fix primary_ip info when using amphp/http-client v5
1 parent 59ceb58 commit e025b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpClient/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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy