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