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
1 changed files with 4 additions and 1 deletions

View File

@ -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>