mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-html5
synced 2025-12-31 19:45:48 +00:00
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.
This commit is contained in:
parent
bc2bfd95bb
commit
293d405e15
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user