mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 21:15:35 +03:00
fix condition
This commit is contained in:
parent
0bd722c426
commit
c8052c23d1
1 changed files with 3 additions and 3 deletions
|
@ -139,10 +139,10 @@ export const getWebAddress = (ip, port = '') => {
|
|||
const isStandardWebPort = port === STANDARD_WEB_PORT;
|
||||
let address = `http://${ip}`;
|
||||
|
||||
if (port) {
|
||||
if (ip.includes(':') && !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 a new issue