Skip to content

Commit 419a738

Browse files
Fix merge
1 parent 38ec95d commit 419a738

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
@@ -67,12 +67,12 @@ public function connectionAcquired(Request $request, Connection $connection, int
6767
public function requestHeaderStart(Request $request, Stream $stream): void
6868
{
6969
$host = $stream->getRemoteAddress()->toString();
70+
$this->info['primary_ip'] = $host;
7071

7172
if (str_contains($host, ':')) {
7273
$host = '['.$host.']';
7374
}
7475

75-
$this->info['primary_ip'] = $host;
7676
$this->info['primary_port'] = $stream->getRemoteAddress()->getPort();
7777
$this->info['pretransfer_time'] = microtime(true) - $this->info['start_time'];
7878
$this->info['debug'] .= \sprintf("* Connected to %s (%s) port %d\n", $request->getUri()->getHost(), $host, $this->info['primary_port']);

0 commit comments

Comments
 (0)