mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
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:
@@ -331,9 +331,10 @@ export class UrlResolverService {
|
|||||||
nginx.fqdnUrls?.forEach((fqdnUrl: FqdnEntry) => {
|
nginx.fqdnUrls?.forEach((fqdnUrl: FqdnEntry) => {
|
||||||
doSafely(() => {
|
doSafely(() => {
|
||||||
const urlType = this.getUrlTypeFromFqdn(fqdnUrl.interface);
|
const urlType = this.getUrlTypeFromFqdn(fqdnUrl.interface);
|
||||||
|
const portToUse = urlType === URL_TYPE.LAN ? nginx.httpsPort : wanport || nginx.httpsPort;
|
||||||
const fqdnUrlToUse = this.getUrlForField({
|
const fqdnUrlToUse = this.getUrlForField({
|
||||||
url: fqdnUrl.fqdn,
|
url: fqdnUrl.fqdn,
|
||||||
portSsl: Number(wanport || nginx.httpsPort),
|
portSsl: Number(portToUse),
|
||||||
});
|
});
|
||||||
|
|
||||||
urls.push({
|
urls.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user