aboutsummaryrefslogtreecommitdiffstats
path: root/apps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps.c')
-rw-r--r--apps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps.c b/apps.c
index 916b3c9..2bf7de0 100644
--- a/apps.c
+++ b/apps.c
@@ -248,7 +248,7 @@ int open_vnc_session(char *host, int tcpport)
char javaurl[64];
char vncurl[64];
- snprintf(display, sizeof(display), "%s:%d", host, tcpport - 5900);
+ snprintf(display, sizeof(display), "%s::%d", host, tcpport);
snprintf(javaurl, sizeof(javaurl), "http://%s:%d/", host, tcpport - 100);
snprintf(vncurl, sizeof(vncurl), "vnc://%s:%d/", host, tcpport);