From 0847907d3c16fad51b18ab7d58a43aebd6545340 Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Mon, 26 Mar 2018 18:05:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9AHTTP=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E8=AE=BF=E9=97=AE=EF=BC=8C=E6=80=BB=E8=A7=88=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=95=B0=E6=8D=AE=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/www/teleport/static/js/dashboard/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/www/teleport/static/js/dashboard/dashboard.js b/server/www/teleport/static/js/dashboard/dashboard.js index ec71ac5..06f1e09 100644 --- a/server/www/teleport/static/js/dashboard/dashboard.js +++ b/server/www/teleport/static/js/dashboard/dashboard.js @@ -459,7 +459,7 @@ $app.init_ws = function () { var _sid = Cookies.get('_sid'); console.log(location); console.log(location.host); - if(location.protocol === 'http') { + if(location.protocol === 'http:') { $app.ws = new WebSocket('ws://' + location.host + '/ws/' + _sid); } else { $app.ws = new WebSocket('wss://' + location.host + '/ws/' + _sid);