Merge: - client: fix IPv6 redirect url for install
* commit 'c8052c23d190ebcc8437a1c61b08e685e5657e70': fix condition - client: fix IPv6 redirect url for install
This commit is contained in:
commit
fb2c625bd1
|
@ -139,10 +139,10 @@ export const getWebAddress = (ip, port = '') => {
|
|||
const isStandardWebPort = port === STANDARD_WEB_PORT;
|
||||
let address = `http://${ip}`;
|
||||
|
||||
if (port) {
|
||||
if (ip.includes(':') && !isStandardWebPort) {
|
||||
if (port && !isStandardWebPort) {
|
||||
if (ip.includes(':') && !ip.includes('[')) {
|
||||
address = `http://[${ip}]:${port}`;
|
||||
} else if (!isStandardWebPort) {
|
||||
} else {
|
||||
address = `http://${ip}:${port}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue