up ws connect in https #12
This commit is contained in:
Vendored
+1
-1
@@ -32,7 +32,7 @@
|
|||||||
<title>RustDesk</title>
|
<title>RustDesk</title>
|
||||||
<script src="/webclient-config/index.js"></script>
|
<script src="/webclient-config/index.js"></script>
|
||||||
<link rel="manifest" href="manifest.json" />
|
<link rel="manifest" href="manifest.json" />
|
||||||
<script type="module" crossorigin src="js/dist/index.js?v=3"></script>
|
<script type="module" crossorigin src="js/dist/index.js?v=4"></script>
|
||||||
<link rel="modulepreload" href="js/dist/vendor.js?v=0b990c6e" />
|
<link rel="modulepreload" href="js/dist/vendor.js?v=0b990c6e" />
|
||||||
<style>
|
<style>
|
||||||
html,
|
html,
|
||||||
|
|||||||
Vendored
+16
-8
@@ -1,4 +1,4 @@
|
|||||||
import {getServerConf} from "./ljw.js?v=3"
|
import {getServerConf} from "./ljw.js?v=4"
|
||||||
import {F as $t, J as Yt, L as Re, l as P4, m as r, P as ua, s as Xt, z as H4} from "./vendor.js?v=0b990c6e";
|
import {F as $t, J as Yt, L as Re, l as P4, m as r, P as ua, s as Xt, z as H4} from "./vendor.js?v=0b990c6e";
|
||||||
|
|
||||||
var Zt = Object.defineProperty;
|
var Zt = Object.defineProperty;
|
||||||
@@ -38987,22 +38987,30 @@ function S4(u = !1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function z4(u, e = !1, i = 0) {
|
function z4(u, e = !1, i = 0) {
|
||||||
if (vn()) return "wss://" + kn(u) + "/ws/" + (e ? "relay" : "id");
|
const p = vn() ? "wss://" : "ws://"
|
||||||
if (u.indexOf(":") > 0) {
|
const domain = uriDomain(u)
|
||||||
const o = u.split(":"), a = parseInt(o[1]);
|
const uriport = uriPort(u)
|
||||||
u = o[0] + ":" + (a + (e ? i || 3 : 2))
|
if (vn() && (!uriport || uriport == '443')){
|
||||||
|
return p + domain + "/ws/" + (e ? "relay" : "id");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (uriport) {
|
||||||
|
const a = parseInt(uriport);
|
||||||
|
u = domain + ":" + (a + (e ? i || 3 : 2))
|
||||||
} else u += ":" + (Pt + (e ? 3 : 2));
|
} else u += ":" + (Pt + (e ? 3 : 2));
|
||||||
return "ws://" + u
|
return p + u
|
||||||
}
|
}
|
||||||
|
|
||||||
function vn() {
|
function vn() {
|
||||||
return window.location.protocol === "https:"
|
return window.location.protocol === "https:"
|
||||||
}
|
}
|
||||||
|
|
||||||
function kn(u) {
|
function uriDomain(u) {
|
||||||
return u.indexOf(":") > 0 ? u.split(":")[0] : u
|
return u.indexOf(":") > 0 ? u.split(":")[0] : u
|
||||||
}
|
}
|
||||||
|
function uriPort(u){
|
||||||
|
return u.indexOf(":") > 0 ? u.split(":")[1] : ''
|
||||||
|
}
|
||||||
const $i = (u, e, i) => e && u.type == "SharedAb" ? Z(Gu([u.value, i.salt])) === Z(e) : !1,
|
const $i = (u, e, i) => e && u.type == "SharedAb" ? Z(Gu([u.value, i.salt])) === Z(e) : !1,
|
||||||
ut = (u, e) => e && u.type == "PersonalAb" ? Z(u.value) === Z(e) : !1;
|
ut = (u, e) => e && u.type == "PersonalAb" ? Z(u.value) === Z(e) : !1;
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
window._gwen = {}
|
window._gwen = {}
|
||||||
window._gwen.kv = {}
|
window._gwen.kv = {}
|
||||||
const apiserver = localStorage.getItem('api-server')
|
const apiserver = localStorage.getItem('wc-api-server')
|
||||||
|
|
||||||
function stringToUint8Array(str) {
|
function stringToUint8Array(str) {
|
||||||
var arr = [];
|
var arr = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user