feat(config): add ws-host configuration (#156)

This commit is contained in:
lejianwen
2025-03-04 15:43:25 +08:00
parent 77d7b43e21
commit 1852f10131
6 changed files with 25 additions and 135 deletions
+3
View File
@@ -11089,6 +11089,9 @@ 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")
}
const [domain, uriport] = uri.split(":")
if (!isHttps()) {
// http 直接走端口