@@ -887,6 +887,9 @@ async function setupTurn(app, options) {
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
assert.strictEqual(typeof options, 'object');
|
||||
|
||||
const disabled = app.manifest.addons.turn.optional && !app.enableTurn;
|
||||
if (disabled) return await addonConfigs.set(app.id, 'turn', []);
|
||||
|
||||
const turnSecret = await blobs.getString(blobs.ADDON_TURN_SECRET);
|
||||
if (!turnSecret) throw new BoxError(BoxError.ADDONS_ERROR, 'Turn secret is missing');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user