- client: fix IPv6 redirect url for install

Closes #953
This commit is contained in:
Ildar Kamalov 2019-08-22 18:42:47 +03:00
parent 53767a5bed
commit 0bd722c426

View file

@ -140,7 +140,7 @@ export const getWebAddress = (ip, port = '') => {
let address = `http://${ip}`;
if (port) {
if (ip.includes(':') && !isStandardWebPort) {
if (ip.includes(':') && !ip.includes('[') && !isStandardWebPort) {
address = `http://[${ip}]:${port}`;
} else if (!isStandardWebPort) {
address = `http://${ip}:${port}`;