Commit b0566f4f4584ca1c968daf64007df58cb5a21038
1 parent
0db1b20e
Support UltraVNC clients, by Eduardo Felipe.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3288 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
2 deletions
vnc.c
... | ... | @@ -1818,6 +1818,7 @@ static int protocol_version(VncState *vs, char *version, size_t len) |
1818 | 1818 | VNC_DEBUG("Client request protocol version %d.%d\n", vs->major, vs->minor); |
1819 | 1819 | if (vs->major != 3 || |
1820 | 1820 | (vs->minor != 3 && |
1821 | + vs->minor != 4 && | |
1821 | 1822 | vs->minor != 5 && |
1822 | 1823 | vs->minor != 7 && |
1823 | 1824 | vs->minor != 8)) { |
... | ... | @@ -1827,10 +1828,10 @@ static int protocol_version(VncState *vs, char *version, size_t len) |
1827 | 1828 | vnc_client_error(vs); |
1828 | 1829 | return 0; |
1829 | 1830 | } |
1830 | - /* Some broken client report v3.5 which spec requires to be treated | |
1831 | + /* Some broken clients report v3.4 or v3.5, which spec requires to be treated | |
1831 | 1832 | * as equivalent to v3.3 by servers |
1832 | 1833 | */ |
1833 | - if (vs->minor == 5) | |
1834 | + if (vs->minor == 4 || vs->minor == 5) | |
1834 | 1835 | vs->minor = 3; |
1835 | 1836 | |
1836 | 1837 | if (vs->minor == 3) { | ... | ... |