浏览代码

Default path 'websockify' for Clojure Websockify.

The Jetty WebSocket server code used by the Clojure version of
websockify doesn't support WebSocket and Web at the same path so pass
in a default value for the path so that we can support the Clojure
version websockify.
Joel Martin 13 年之前
父节点
当前提交
523cc4d6ab
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      vnc.html
  2. 1 1
      vnc_auto.html

+ 1 - 1
vnc.html

@@ -122,7 +122,7 @@
                     <li><input id="noVNC_shared" type="checkbox"> Shared Mode</li>
                     <li><input id="noVNC_shared" type="checkbox"> Shared Mode</li>
                     <li><input id="noVNC_view_only" type="checkbox"> View Only</li>
                     <li><input id="noVNC_view_only" type="checkbox"> View Only</li>
                     <li><input id="noVNC_connectTimeout" type="input"> Connect Timeout (s)</li>
                     <li><input id="noVNC_connectTimeout" type="input"> Connect Timeout (s)</li>
-                    <li><input id="noVNC_path" type="input"> Path</li>
+                    <li><input id="noVNC_path" type="input" value="websockify"> Path</li>
                     <hr>
                     <hr>
                     <!-- Stylesheet selection dropdown -->
                     <!-- Stylesheet selection dropdown -->
                     <li><label><strong>Style: </strong>
                     <li><label><strong>Style: </strong>

+ 1 - 1
vnc_auto.html

@@ -93,7 +93,7 @@
             host = WebUtil.getQueryVar('host', null);
             host = WebUtil.getQueryVar('host', null);
             port = WebUtil.getQueryVar('port', null);
             port = WebUtil.getQueryVar('port', null);
             password = WebUtil.getQueryVar('password', '');
             password = WebUtil.getQueryVar('password', '');
-            path = WebUtil.getQueryVar('path', '');
+            path = WebUtil.getQueryVar('path', 'websockify');
             if ((!host) || (!port)) {
             if ((!host) || (!port)) {
                 updateState('failed',
                 updateState('failed',
                     "Must specify host and port in URL");
                     "Must specify host and port in URL");