fix(webclient): port
This commit is contained in:
Vendored
+5
-2
@@ -11092,8 +11092,11 @@ function getUriFromRs(uri, isRelay = false, roffset = 0) {
|
|||||||
const [domain, uriport] = uri.split(":")
|
const [domain, uriport] = uri.split(":")
|
||||||
if (!isHttps()) {
|
if (!isHttps()) {
|
||||||
// http 直接走端口
|
// http 直接走端口
|
||||||
const port = uriport ? parseInt(uriport) : defaultIdServerPort;
|
if (uriport) {
|
||||||
return p + domain + ":" + (port + (isRelay ? 3 : 2))
|
const port = parseInt(uriport)
|
||||||
|
return p + domain + ":" + (port + (isRelay ? roffset || 3 : 2))
|
||||||
|
}
|
||||||
|
return p + domain + ":" + (defaultIdServerPort + (isRelay ? 3 : 2))
|
||||||
}
|
}
|
||||||
// https 分情况
|
// https 分情况
|
||||||
if (!window.location.port) {
|
if (!window.location.port) {
|
||||||
|
|||||||
Reference in New Issue
Block a user