Fix bug in ensuring at least default ACS or ACS with 'SC' is used for WFC
This commit is contained in:
parent
a4b9253075
commit
39b3aeaedf
14
core/wfc.js
14
core/wfc.js
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue