Fixed exception when setting up domains without seperate dns name.
Ylian Saint-Hilaire committed
Apr 4, 2019 at 14:47 UTC
27e498a956cfe9c85e4b8a3a1ff8211b29090dfe
1 file changed
+4
webserver.js
+4
@@ -138,6 +138,10 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
138
// If this domain has a DNS and a matching DNS cert, use it. This case works for wildcard certs.
139
obj.webCertificateFullHashs[i] = parent.certificateOperations.getCertHashBinary(obj.certificates.dns[i].cert);
140
obj.webCertificateHashs[i] = parent.certificateOperations.getPublicKeyHashBinary(obj.certificates.dns[i].cert);
141
+ } else if (i != '') {
142
+ // For any other domain, use the default cert.
143
+ obj.webCertificateFullHashs[i] = obj.webCertificateFullHashs[''];
144
+ obj.webCertificateHashs[i] = obj.webCertificateHashs[''];
145
}
146
}
147