diff options
author | Michał Kępień <github@kempniu.pl> | 2017-02-14 12:42:04 +0100 |
---|---|---|
committer | Michał Kępień <github@kempniu.pl> | 2017-02-14 12:42:16 +0100 |
commit | 75f04c14e49e084e41bdd5491edad8823773a08c (patch) | |
tree | 5578a30a808f4b25390783876516b9e4153f5cb5 | |
parent | 2041bfd5cd6c6a8bcec260a3fa86d340050892c8 (diff) | |
download | libtdevnc-75f04c14e49e084e41bdd5491edad8823773a08c.tar.gz libtdevnc-75f04c14e49e084e41bdd5491edad8823773a08c.zip |
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 72396c2..0b2d46f 100644 --- a/libvncserver/websockets.c +++ b/libvncserver/websockets.c @@ -245,7 +245,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) { |