Fix bug in ensuring at least default ACS or ACS with 'SC' is used for WFC

This commit is contained in:
Bryan Ashby 2022-08-04 12:24:02 -06:00
parent a4b9253075
commit 39b3aeaedf
1 changed files with 12 additions and 2 deletions

View File

@ -61,11 +61,21 @@ exports.getModule = class WaitingForCallerModule extends MenuModule {
extraArgs: options.extraArgs, extraArgs: options.extraArgs,
}); });
this.config.acs = this.config.acs || DefaultACS; //
if (!this.config.acs.includes('SC')) { // Enforce that we have at least a secure connection in our ACS check
//
this.config.acs = this.config.acs;
if (!this.config.acs) {
this.config.acs = DefaultACS;
} else if (!this.config.acs.includes('SC')) {
this.config.acs = 'SC' + this.config.acs; // secure connection at the very least this.config.acs = 'SC' + this.config.acs; // secure connection at the very least
} }
// ensure the menu instance has this setting
if (!_.has(options, 'menuConfig.config.acs')) {
_.set(options, 'menuConfig.config.acs', this.config.acs);
}
this.selectedNodeStatusIndex = -1; // no selection this.selectedNodeStatusIndex = -1; // no selection
this.menuMethods = { this.menuMethods = {