summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2017-05-15 12:49:33 +0200
committerGitHub <noreply@github.com>2017-05-15 12:49:33 +0200
commitada4b4fc5a27eb733c1eaad9d5bce42930e0f4ed (patch)
treeaf278c70274df3ecdc764f13bb19b2f3df1fd69a
parent051fe2a0090516f3688b40c6e6d966d95be0c326 (diff)
parent75f04c14e49e084e41bdd5491edad8823773a08c (diff)
downloadlibtdevnc-ada4b4fc5a27eb733c1eaad9d5bce42930e0f4ed.tar.gz
libtdevnc-ada4b4fc5a27eb733c1eaad9d5bce42930e0f4ed.zip
Merge pull request #158 from kempniu/gtk-vnc-0.7.0-compat
websockets: Ensure compatibility with gtk-vnc 0.7.0+
-rw-r--r--libvncserver/websockets.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
index d10d992..b9947c4 100644
--- a/libvncserver/websockets.c
+++ b/libvncserver/websockets.c
@@ -141,7 +141,10 @@ webSocketsCheck (rfbClientPtr cl)
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");
if (rfbWriteExact(cl, FLASH_POLICY_RESPONSE,
SZ_FLASH_POLICY_RESPONSE) < 0) {