From 565b549ff695d987477c3f4e499000ee1e1dd216 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Tue, 29 Oct 2019 11:14:51 -0700 Subject: [PATCH] Fixed reverse proxy cert load for sub-domains with no DNS setting. --- meshcentral.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshcentral.js b/meshcentral.js index 07252a3b..81909bfe 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -863,7 +863,7 @@ function CreateMeshCentralServer(config, args) { // Load web certs webCertLoadCount++; var dnsname = obj.config.domains[i].dns; - if ((dnsname == null) && (i == '') && (obj.config.settings.cert != null)) { dnsname = obj.config.settings.cert; } + if ((dnsname == null) && (obj.config.settings.cert != null)) { dnsname = obj.config.settings.cert; } obj.certificateOperations.loadCertificate(obj.config.domains[i].certurl, dnsname, obj.config.domains[i], function (url, cert, xhostname, xdomain) { if (cert != null) { // Hash the entire cert diff --git a/package.json b/package.json index 83796b34..1094d208 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.3-l", + "version": "0.4.3-m", "keywords": [ "Remote Management", "Intel AMT",