[Kimchi-devel] [PATCH 8/8] bug fix: Properly set the listen IP to SPICE console

Aline Manera alinefm at linux.vnet.ibm.com
Mon May 5 18:08:20 UTC 2014


From: Aline Manera <alinefm at br.ibm.com>

When using secure websockets connections, the listen IP must be the same
of the server IP, otherwise the connection will not be stabilished.

Signed-off-by: Aline Manera <alinefm at br.ibm.com>
Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.api.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index 2cea751..fe56eaf 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -350,7 +350,7 @@ var kimchi = {
             }).done(function(data, textStatus, xhr) {
                 url = 'https://' + location.hostname + ':' + proxy_port;
                 url += "/console.html?url=spice.html&port=" + proxy_port;
-                url += "&listen=" + data.graphics.listen;
+                url += "&listen=" + location.hostname;
                 url += "&token=" + encodeURIComponent(vm);
                 url += "&kimchi=" + location.port;
                 url += '&encrypt=1';
-- 
1.7.10.4




More information about the Kimchi-devel mailing list