From 9ede8a8a3ed80ea4ea0a9ccffd318d019e4690af Mon Sep 17 00:00:00 2001 From: hk298 Date: Tue, 7 Oct 2025 11:57:51 -0400 Subject: [PATCH] added missing config parameters The Janus API secret and the HTTPS options for the maintenance interface were not handled. --- src/whip.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/whip.js b/src/whip.js index e54ddb4..e8b7c79 100644 --- a/src/whip.js +++ b/src/whip.js @@ -42,12 +42,14 @@ class JanusWhipServer extends EventEmitter { throw new Error('Invalid configuration, unsupported "debug" level'); this.config = { janus: { - address: janus.address + address: janus.address, + apisecret: janus.apisecret }, rest: { port: rest.port, basePath: rest.basePath, - app: rest.app + app: rest.app, + https: rest.https }, allowTrickle: (allowTrickle === true), strictETags: (strictETags === true), @@ -166,6 +168,7 @@ class JanusWhipServer extends EventEmitter { is_admin: false, address: { url: this.config.janus.address, + apisecret: this.config.janus.apisecret }, retry_time_secs: 3, max_retries: Number.MAX_VALUE