Skip to content

Commit

Permalink
Revert "feat: Skip redirecting to vnodes any trusted domains." (#1117)
Browse files Browse the repository at this point in the history
This reverts commit e05f8da. Jibri now reports that visitors are not supported and this is not needed.
  • Loading branch information
damencho authored Oct 12, 2023
1 parent 839b212 commit ef49650
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ 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 &&
(query.from == null || !XmppConfig.config.trustedDomains.contains(query.from.asDomainBareJid()))
) {
val vnode = if (visitorSupported && visitorsManager.enabled) {
conference?.redirectVisitor(visitorRequested)
} else {
null
Expand Down

0 comments on commit ef49650

Please sign in to comment.