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:
+4
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user