diff --git a/Internal/AmpListenerV5.php b/Internal/AmpListenerV5.php index fe5d36e..fb8a0b7 100644 --- a/Internal/AmpListenerV5.php +++ b/Internal/AmpListenerV5.php @@ -66,7 +66,7 @@ public function connectionAcquired(Request $request, Connection $connection, int public function requestHeaderStart(Request $request, Stream $stream): void { - $host = $stream->getRemoteAddress()->toString(); + $host = $stream->getRemoteAddress()->getAddress(); $this->info['primary_ip'] = $host; if (str_contains($host, ':')) {