feat(config): add ws-host configuration (#156)
This commit is contained in:
Vendored
+3
@@ -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 直接走端口
|
||||
|
||||
Reference in New Issue
Block a user