mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2026-02-19 19:00:50 +00:00
style(webclient): ws-host
This commit is contained in:
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