Skip to content

Commit 06be9be

Browse files
committed
don't add wanport to LAN FQDN
1 parent 6acba27 commit 06be9be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/unraid-api-plugin-connect/src/network/url-resolver.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,10 @@ export class UrlResolverService {
331331
nginx.fqdnUrls?.forEach((fqdnUrl: FqdnEntry) => {
332332
doSafely(() => {
333333
const urlType = this.getUrlTypeFromFqdn(fqdnUrl.interface);
334+
const portToUse = urlType === URL_TYPE.LAN ? nginx.httpsPort : wanport || nginx.httpsPort;
334335
const fqdnUrlToUse = this.getUrlForField({
335336
url: fqdnUrl.fqdn,
336-
portSsl: Number(wanport || nginx.httpsPort),
337+
portSsl: Number(portToUse),
337338
});
338339

339340
urls.push({

0 commit comments

Comments
 (0)