1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

Fixed failed to connect if port is not 6080

This commit is contained in:
Doro Wu
2015-05-14 11:05:03 +08:00
parent 89a5132f55
commit 5975848169
+4 -1
View File
@@ -4,7 +4,10 @@
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=vnc.html?autoconnect=1&host=127.0.0.1&port=6080">
<script type="text/javascript">
window.location.href = "vnc.html?autoconnect=1&host=127.0.0.1&port=6080"
var port = window.location.port;
if (!port)
port = window.location.protocol[4] == 's' ? 443 : 80;
window.location.href = "vnc.html?autoconnect=1&host=127.0.0.1&port=" + port;
</script>
<title>Page Redirection</title>
</head>