From 1ca7b99e7b103a0d64718e8f53bf5295d08d72a3 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Fri, 31 May 2019 12:09:57 +0800 Subject: [PATCH] http --- public/react/src/modules/page/VNCDisplay.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/page/VNCDisplay.js b/public/react/src/modules/page/VNCDisplay.js index 6b4b0323..e6dff2f4 100644 --- a/public/react/src/modules/page/VNCDisplay.js +++ b/public/react/src/modules/page/VNCDisplay.js @@ -88,11 +88,11 @@ class VNCDisplay extends Component { status("Connecting"); // Build the websocket URL used to connect let url; - if (window.location.protocol === "https:") { - url = 'wss'; - } else { + // if (window.location.protocol === "https:") { + // url = 'wss'; + // } else { url = 'ws'; - } + // } url += '://' + host; if(port) { url += ':' + port;