mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-09-15 14:28:34 +08:00
fix(webclient): port
This commit is contained in:
parent
7fa9b79f31
commit
6d9c245c81
7
resources/web2/js/dist/index.js
vendored
7
resources/web2/js/dist/index.js
vendored
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user