diff options
author | Christian Beier <dontmind@freeshell.org> | 2017-05-15 12:49:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 12:49:33 +0200 |
commit | ada4b4fc5a27eb733c1eaad9d5bce42930e0f4ed (patch) | |
tree | af278c70274df3ecdc764f13bb19b2f3df1fd69a | |
parent | 051fe2a0090516f3688b40c6e6d966d95be0c326 (diff) | |
parent | 75f04c14e49e084e41bdd5491edad8823773a08c (diff) | |
download | libtdevnc-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.c | 5 |
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) { |