Fixed reverse proxy cert load for sub-domains with no DNS setting.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-29 11:14:51 -07:00
parent de82371aa6
commit 9e30079ed6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.3-l",
"version": "0.4.3-m",
"keywords": [
"Remote Management",
"Intel AMT",