mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2026-01-21 06:20:35 +00:00
style(webclient): ws-host
This commit is contained in:
@@ -32,7 +32,7 @@ rustdesk:
|
||||
key-file: "/data/id_ed25519.pub"
|
||||
personal: 1
|
||||
webclient-magic-queryonline: 0
|
||||
ws-host: ""
|
||||
ws-host: "" #eg: wss://192.168.1.3:4443
|
||||
logger:
|
||||
path: "./runtime/log.txt"
|
||||
level: "info" #trace,debug,info,warn,error,fatal
|
||||
|
||||
4
resources/web2/js/dist/index.js
vendored
4
resources/web2/js/dist/index.js
vendored
@@ -11088,10 +11088,10 @@ function R4(u = !1) {
|
||||
}
|
||||
|
||||
function getUriFromRs(uri, isRelay = false, roffset = 0) {
|
||||
const p = isHttps() ? "wss://" : "ws://"
|
||||
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(":")
|
||||
if (!isHttps()) {
|
||||
// http 直接走端口
|
||||
|
||||
Reference in New Issue
Block a user