Fixed failed to connect if port is not 6080
This commit is contained in:
parent
89a5132f55
commit
5975848169
|
|
@ -4,7 +4,10 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="refresh" content="1;url=vnc.html?autoconnect=1&host=127.0.0.1&port=6080">
|
<meta http-equiv="refresh" content="1;url=vnc.html?autoconnect=1&host=127.0.0.1&port=6080">
|
||||||
<script type="text/javascript">
|
<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>
|
</script>
|
||||||
<title>Page Redirection</title>
|
<title>Page Redirection</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue