Skip to content

Commit

Permalink
feat: Skip redirecting to vnodes any trusted domains.
Browse files Browse the repository at this point in the history
Does not redirect jibri to the visitor nodes.
  • Loading branch information
damencho committed Jul 7, 2023
1 parent 67f48f2 commit e05f8da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ class ConferenceIqHandler(

val visitorSupported = query.properties.any { it.name == "visitors-version" }
val visitorRequested = query.properties.any { it.name == "visitor" && it.value == "true" }
val vnode = if (visitorSupported && visitorsManager.enabled) {
val vnode = if (visitorSupported && visitorsManager.enabled &&
!XmppConfig.config.trustedDomains.contains(query.from.asDomainBareJid())
) {
conference?.redirectVisitor(visitorRequested)
} else {
null
Expand Down

0 comments on commit e05f8da

Please sign in to comment.