walkor 1 éve
szülő
commit
7cbeb8036e
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/Protocols/Ws.php

+ 1 - 1
src/Protocols/Ws.php

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