GUACAMOLE-1562: Ensure "ping" response is not erroneously handled as the tunnel UUID.

This commit is contained in:
Michael Jumper
2022-03-25 21:37:17 +00:00
parent 2bb561f9fe
commit c555fe6411

View File

@@ -1094,7 +1094,7 @@ Guacamole.WebSocketTunnel = function(tunnelURL) {
if (tunnel.uuid === null) {
// Associate tunnel UUID if received
if (opcode === Guacamole.Tunnel.INTERNAL_DATA_OPCODE)
if (opcode === Guacamole.Tunnel.INTERNAL_DATA_OPCODE && elements.length === 1)
tunnel.setUUID(elements[0]);
// Tunnel is now open and UUID is available