Support UltraVNC clients
PATCH 1/1 Support UltraVNC clients
Hi,
UltraVNC clients report non standard RFB protocol 3.4. Attached patch makes vnc server treat them as 3.3.
Regards,
Edu
*** vnc.c 17 Sep 2007 08:09:45 -0000 1.24
--- vnc.c 26 Sep 2007 22:44:57 -0000
@@ -1818,6 +1818,7 @@
VNC_DEBUG("Client request protocol version %d.%d\n", vs->major, vs->minor);
if (vs->major != 3 || (vs->minor != 3 &&
+ vs->minor != 4 &&
vs->minor != 5 &&
vs->minor != 7 &&
vs->minor != 8)) {
@@ -1827,10 +1828,10 @@
vnc_client_error(vs);
return 0;
}- /* Some broken client report v3.5 which spec requires to be treated
+ /* Some broken clients report v3.4 or v3.5, which spec requires to be treated
* as equivalent to v3.3 by servers
*/
- if (vs->minor == 5)
+ if (vs->minor == 4 || vs->minor == 5)
vs->minor = 3;
if (vs->minor == 3) {