Fix http/s protocol headers

Improve request ids
This commit is contained in:
René Preuß committed 2021-01-01 16:06:59 +01:00
1 parent f6d04777e1
commit 6f72d719bf
5 files changed
+35 -26

No files matched your search

+2 -4
View File
@@ -45,15 +45,13 @@ class ConnectionManager implements ConnectionManagerContract
public function storeConnection(string $host, ?string $subdomain, ConnectionInterface $connection): ControlConnection
{
$clientId = (string) uniqid();
$connection->client_id = $clientId;
$connection->client_id = sha1(uniqid('', true));
$storedConnection = new ControlConnection(
$connection,
$host,
$subdomain ?? $this->subdomainGenerator->generateSubdomain(),
$clientId,
$connection->client_id,
$this->getAuthTokenFromConnection($connection)
);
@@ -3,6 +3,7 @@
namespace App\Server\Connections;
use Evenement\EventEmitterTrait;
use Illuminate\Support\Str;
use Ratchet\ConnectionInterface;
class ControlConnection