fix authStrategyFlags using wrong domain (#6015)

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2024-04-11 17:43:08 +01:00 committed by GitHub
parent ccf57bee1a
commit e025e9558b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6470,7 +6470,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
for (var i in parent.config.domains) {
if (parent.config.domains[i].dns != null) {
if (typeof parent.config.domains[''].authstrategies != 'object') { parent.config.domains[''].authstrategies = { 'authStrategyFlags': 0 }; }
parent.config.domains[''].authstrategies.authStrategyFlags |= await setupDomainAuthStrategy(parent.config.domains['']);
parent.config.domains[''].authstrategies.authStrategyFlags |= await setupDomainAuthStrategy(parent.config.domains[i]);
} else {
if (typeof parent.config.domains[i].authstrategies != 'object') { parent.config.domains[i].authstrategies = { 'authStrategyFlags': 0 }; }
parent.config.domains[i].authstrategies.authStrategyFlags |= await setupDomainAuthStrategy(parent.config.domains[i]);