fix(webclient): port

This commit is contained in:
lejianwen 2025-02-16 14:17:37 +08:00
parent 7fa9b79f31
commit 6d9c245c81

View File

@ -11092,8 +11092,11 @@ function getUriFromRs(uri, isRelay = false, roffset = 0) {
const [domain, uriport] = uri.split(":")
if (!isHttps()) {
// http 直接走端口
const port = uriport ? parseInt(uriport) : defaultIdServerPort;
return p + domain + ":" + (port + (isRelay ? 3 : 2))
if (uriport) {
const port = parseInt(uriport)
return p + domain + ":" + (port + (isRelay ? roffset || 3 : 2))
}
return p + domain + ":" + (defaultIdServerPort + (isRelay ? 3 : 2))
}
// https 分情况
if (!window.location.port) {