From 812bbb2ccc5ff22926ce322e5c5f9c784e1c86e4 Mon Sep 17 00:00:00 2001 From: "Ing. Jan KRCMAR" Date: Tue, 25 Sep 2018 23:25:06 +0200 Subject: [PATCH] console-spice-full fix scheme wss when accessing from https --- console/templates/console-spice-full.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/console/templates/console-spice-full.html b/console/templates/console-spice-full.html index 4bf75af..5accf4d 100644 --- a/console/templates/console-spice-full.html +++ b/console/templates/console-spice-full.html @@ -100,6 +100,9 @@ host = document.getElementById("host").value; port = document.getElementById("port").value; + if (window.location.protocol == 'https:') { + scheme = "wss://"; + } password = document.getElementById("password").value;