diff --git a/conf/config.yaml b/conf/config.yaml index 54536bb..99e695d 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -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 diff --git a/resources/web2/js/dist/index.js b/resources/web2/js/dist/index.js index 2a3c2d8..ae0264c 100644 --- a/resources/web2/js/dist/index.js +++ b/resources/web2/js/dist/index.js @@ -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 直接走端口