mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 21:50:29 +03:00
Fixed port validation
This commit is contained in:
parent
8e993cd788
commit
158f2f6100
2 changed files with 2 additions and 2 deletions
client/src/helpers
|
@ -195,7 +195,7 @@ export const redirectToCurrentProtocol = (values, httpPort = 80) => {
|
|||
|
||||
if (protocol !== 'https:' && enabled && port_https) {
|
||||
checkRedirect(`https://${hostname}${httpsPort}/${hash}`);
|
||||
} else if (protocol === 'https:' && enabled && port_https && port_https !== port) {
|
||||
} else if (protocol === 'https:' && enabled && port_https && port_https !== parseInt(port, 10)) {
|
||||
checkRedirect(`https://${hostname}${httpsPort}/${hash}`);
|
||||
} else if (protocol === 'https:' && (!enabled || !port_https)) {
|
||||
window.location.replace(`http://${hostname}:${httpPort}/${hash}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue