[Kimchi-devel] [PATCH] [Kimchi 1/1] Fix issue #1006: Use relative path to access websockify

Aline Manera aline.manera at gmail.com
Tue Oct 3 14:12:47 UTC 2017


Signed-off-by: Aline Manera <aline.manera at gmail.com>
---
 ui/js/src/kimchi.api.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index 0cacab3a..a34b2ba3 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -324,7 +324,7 @@ var kimchi = {
                 url += server_root;
                 url += "/plugins/kimchi/serial/html/serial.html";
                 url += "?port=" + proxy_port;
-                url += "&path=" + server_root + "/websockify";
+                url += "&path=" + server_root + "websockify";
                 url += "?token=" + wok.urlSafeB64Encode(vm+'-console').replace(/=*$/g, "");
                 url += '&encrypt=1';
                 window.open(url);
@@ -348,7 +348,7 @@ var kimchi = {
             url += server_root;
             url += "/plugins/kimchi/novnc/vnc_auto.html";
             url += "?port=" + proxy_port;
-            url += "&path=" + server_root + "/websockify";
+            url += "&path=" + server_root + "websockify";
             /*
              * From python documentation base64.urlsafe_b64encode(s)
              * substitutes - instead of + and _ instead of / in the
-- 
2.13.6



More information about the Kimchi-devel mailing list