Blame SOURCES/0040-Ensure-compatibility-with-gtk-vnc-0.7.0.patch
|
|
dde763 |
From 75f04c14e49e084e41bdd5491edad8823773a08c Mon Sep 17 00:00:00 2001
|
|
|
dde763 |
From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= <github@kempniu.pl>
|
|
|
dde763 |
Date: Tue, 14 Feb 2017 12:42:04 +0100
|
|
|
dde763 |
Subject: [PATCH 40/98] Ensure compatibility with gtk-vnc 0.7.0+
|
|
|
dde763 |
|
|
|
dde763 |
---
|
|
|
dde763 |
libvncserver/websockets.c | 5 ++++-
|
|
|
dde763 |
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
dde763 |
|
|
|
dde763 |
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
|
|
|
dde763 |
index 72396c2..0b2d46f 100644
|
|
|
dde763 |
--- a/libvncserver/websockets.c
|
|
|
dde763 |
+++ b/libvncserver/websockets.c
|
|
|
dde763 |
@@ -245,7 +245,10 @@ webSocketsCheck (rfbClientPtr cl)
|
|
|
dde763 |
return FALSE;
|
|
|
dde763 |
}
|
|
|
dde763 |
|
|
|
dde763 |
- if (strncmp(bbuf, "<", 1) == 0) {
|
|
|
dde763 |
+ if (strncmp(bbuf, "RFB ", 4) == 0) {
|
|
|
dde763 |
+ rfbLog("Normal socket connection\n");
|
|
|
dde763 |
+ return TRUE;
|
|
|
dde763 |
+ } else if (strncmp(bbuf, "<", 1) == 0) {
|
|
|
dde763 |
rfbLog("Got Flash policy request, sending response\n");
|
|
|
dde763 |
if (rfbWriteExact(cl, FLASH_POLICY_RESPONSE,
|
|
|
dde763 |
SZ_FLASH_POLICY_RESPONSE) < 0) {
|
|
|
dde763 |
--
|
|
|
dde763 |
2.9.4
|
|
|
dde763 |
|