From: Aline Manera <alinefm(a)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(a)br.ibm.com>
Signed-off-by: Royce Lv <lvroyce(a)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