Merge pull request #158 from kempniu/gtk-vnc-0.7.0-compat

websockets: Ensure compatibility with gtk-vnc 0.7.0+
pull/3/head
Christian Beier 8 years ago committed by GitHub
commit ada4b4fc5a

@ -141,7 +141,10 @@ webSocketsCheck (rfbClientPtr cl)
return FALSE; return FALSE;
} }
if (strncmp(bbuf, "<", 1) == 0) { if (strncmp(bbuf, "RFB ", 4) == 0) {
rfbLog("Normal socket connection\n");
return TRUE;
} else if (strncmp(bbuf, "<", 1) == 0) {
rfbLog("Got Flash policy request, sending response\n"); rfbLog("Got Flash policy request, sending response\n");
if (rfbWriteExact(cl, FLASH_POLICY_RESPONSE, if (rfbWriteExact(cl, FLASH_POLICY_RESPONSE,
SZ_FLASH_POLICY_RESPONSE) < 0) { SZ_FLASH_POLICY_RESPONSE) < 0) {

Loading…
Cancel
Save