fix(connect): valid LAN FQDN while remote access is enabled (#1625)

Stop appending `wanport` to LAN FQDN when remote access is enabled.
This commit is contained in:
Pujit Mehrotra
2025-08-25 13:15:07 -04:00
committed by GitHub
parent b2e7801238
commit aa588883cc

View File

@@ -331,9 +331,10 @@ export class UrlResolverService {
nginx.fqdnUrls?.forEach((fqdnUrl: FqdnEntry) => {
doSafely(() => {
const urlType = this.getUrlTypeFromFqdn(fqdnUrl.interface);
const portToUse = urlType === URL_TYPE.LAN ? nginx.httpsPort : wanport || nginx.httpsPort;
const fqdnUrlToUse = this.getUrlForField({
url: fqdnUrl.fqdn,
portSsl: Number(wanport || nginx.httpsPort),
portSsl: Number(portToUse),
});
urls.push({