aboutsummaryrefslogtreecommitdiff
path: root/vnc.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 13:01:15 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 13:01:15 +0000
commitb0566f4f4584ca1c968daf64007df58cb5a21038 (patch)
treeeeaccb5ad3862f4490adc6fc7881e2de9c8a2109 /vnc.c
parent0db1b20e478efd378c19e79057453a79b4c81e11 (diff)
Support UltraVNC clients, by Eduardo Felipe.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3288 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vnc.c')
-rw-r--r--vnc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnc.c b/vnc.c
index 068da05c1e..72c8d1cceb 100644
--- a/vnc.c
+++ b/vnc.c
@@ -1818,6 +1818,7 @@ static int protocol_version(VncState *vs, char *version, size_t len)
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 @@ static int protocol_version(VncState *vs, char *version, size_t len)
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) {