summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladik Romanovsky <vladik.romanovsky@enovance.com>2014-07-24 19:39:25 +0200
committerJeremy White <jwhite@codeweavers.com>2014-08-01 10:34:30 -0500
commit293d405e15a4499219fe81e830862cc2b1518e3e (patch)
tree966245e8ad0cffb8e51d68535f1de2d42f55ba6f
parentbc2bfd95bb9211b761e18dcfc317fe09de4ab7bf (diff)
Use wss scheme when accessing with https protocol
Hi, Currently the websocket connection is only being established using the ws scheme. Adding support for wss scheme when using https protocol to allow ssl connection.
-rw-r--r--spice_auto.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/spice_auto.html b/spice_auto.html
index 0a01996..b80b01c 100644
--- a/spice_auto.html
+++ b/spice_auto.html
@@ -99,6 +99,9 @@
}
}
port = spice_query_var('port', default_port);
+ if (window.location.protocol == 'https:') {
+ scheme = "wss://";
+ }
// If a token variable is passed in, set the parameter in a cookie.
// This is used by nova-spiceproxy.