Skip to content

Commit

Permalink
fix: explicity check that array, if defined, is not empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Viren070 committed Jan 19, 2025
1 parent f890b23 commit ef7375f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/addon/src/addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ export class AIOStreams {

if (
mediaFlowConfig.proxiedAddons &&
mediaFlowConfig.proxiedAddons.length > 0 &&
!mediaFlowConfig.proxiedAddons.includes(stream.addon.id)
) {
if (Settings.LOG_SENSITIVE_INFO) {
Expand All @@ -459,9 +460,11 @@ export class AIOStreams {

if (
(mediaFlowConfig.proxiedServices &&
mediaFlowConfig.proxiedServices.length > 0 &&
stream.provider &&
!mediaFlowConfig.proxiedServices.includes(stream.provider.id)) ||
(mediaFlowConfig.proxiedServices &&
mediaFlowConfig.proxiedServices.length > 0 &&
!stream.provider &&
!mediaFlowConfig.proxiedServices.includes('none'))
) {
Expand Down

0 comments on commit ef7375f

Please sign in to comment.