style(webclient): ws-host
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ rustdesk:
|
|||||||
key-file: "/data/id_ed25519.pub"
|
key-file: "/data/id_ed25519.pub"
|
||||||
personal: 1
|
personal: 1
|
||||||
webclient-magic-queryonline: 0
|
webclient-magic-queryonline: 0
|
||||||
ws-host: ""
|
ws-host: "" #eg: wss://192.168.1.3:4443
|
||||||
logger:
|
logger:
|
||||||
path: "./runtime/log.txt"
|
path: "./runtime/log.txt"
|
||||||
level: "info" #trace,debug,info,warn,error,fatal
|
level: "info" #trace,debug,info,warn,error,fatal
|
||||||
|
|||||||
Vendored
+2
-2
@@ -11088,10 +11088,10 @@ function R4(u = !1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getUriFromRs(uri, isRelay = false, roffset = 0) {
|
function getUriFromRs(uri, isRelay = false, roffset = 0) {
|
||||||
const p = isHttps() ? "wss://" : "ws://"
|
|
||||||
if (window.ws_host) {
|
if (window.ws_host) {
|
||||||
return p + window.ws_host + "/ws/" + (isRelay ? "relay" : "id")
|
return window.ws_host + "/ws/" + (isRelay ? "relay" : "id")
|
||||||
}
|
}
|
||||||
|
const p = isHttps() ? "wss://" : "ws://"
|
||||||
const [domain, uriport] = uri.split(":")
|
const [domain, uriport] = uri.split(":")
|
||||||
if (!isHttps()) {
|
if (!isHttps()) {
|
||||||
// http 直接走端口
|
// http 直接走端口
|
||||||
|
|||||||
Reference in New Issue
Block a user