Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Ignores list of domains when checking for visitors and promotion.
damencho13323e423e93
diff --git a/resources/prosody-plugins/mod_visitors_component.lua b/resources/prosody-plugins/mod_visitors_component.luaindex 1365e8e2b7..8872b1b34d 100644--- a/resources/prosody-plugins/mod_visitors_component.lua+++ b/resources/prosody-plugins/mod_visitors_component.lua@@ -19,6 +19,9 @@ if not muc_domain_base thenreturn;end+-- A list of domains which to be ignored for visitors. The config is set under the main virtual host+local ignore_list = module:context(muc_domain_base):get_option_set('visitors_ignore_list', {});+local auto_allow_promotion = module:get_option_boolean('auto_allow_visitor_promotion', false);local function is_admin(jid)@@ -202,7 +205,8 @@ process_host_module(muc_domain_prefix..'.'..muc_domain_base, function(host_modulif visitors_promotion_map[room.jid] then-- now let's check for jid- if visitors_promotion_map[room.jid][jid.node(stanza.attr.from)] then+ if visitors_promotion_map[room.jid][jid.node(stanza.attr.from)] -- promotion was approved+ or ignore_list:contains(jid.host(stanza.attr.from)) then -- jibri or other domains to ignore-- allow joinreturn;end