|
@@ -361,7 +361,7 @@ class Ws
|
|
|
}
|
|
}
|
|
|
// Get Host.
|
|
// Get Host.
|
|
|
$port = $connection->getRemotePort();
|
|
$port = $connection->getRemotePort();
|
|
|
- $host = $port === 80 ? $connection->getRemoteHost() : $connection->getRemoteHost() . ':' . $port;
|
|
|
|
|
|
|
+ $host = $port === 80 || $port === 443 ? $connection->getRemoteHost() : $connection->getRemoteHost() . ':' . $port;
|
|
|
// Handshake header.
|
|
// Handshake header.
|
|
|
$connection->context->websocketSecKey = base64_encode(random_bytes(16));
|
|
$connection->context->websocketSecKey = base64_encode(random_bytes(16));
|
|
|
$userHeader = $connection->headers ?? null;
|
|
$userHeader = $connection->headers ?? null;
|