mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-02-18 10:59:50 +03:00
parent
53767a5bed
commit
0bd722c426
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ export const getWebAddress = (ip, port = '') => {
|
||||||
let address = `http://${ip}`;
|
let address = `http://${ip}`;
|
||||||
|
|
||||||
if (port) {
|
if (port) {
|
||||||
if (ip.includes(':') && !isStandardWebPort) {
|
if (ip.includes(':') && !ip.includes('[') && !isStandardWebPort) {
|
||||||
address = `http://[${ip}]:${port}`;
|
address = `http://[${ip}]:${port}`;
|
||||||
} else if (!isStandardWebPort) {
|
} else if (!isStandardWebPort) {
|
||||||
address = `http://${ip}:${port}`;
|
address = `http://${ip}:${port}`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue