walkor 1 năm trước cách đây
mục cha
commit
7cbeb8036e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;