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(prosody): Allow filter_rayo to be loaded in other virtual hosts.
damenchobb1eade1f066
diff --git a/resources/prosody-plugins/mod_filter_iq_rayo.lua b/resources/prosody-plugins/mod_filter_iq_rayo.luaindex 61657c893a..dbeb0a8793 100644--- a/resources/prosody-plugins/mod_filter_iq_rayo.lua+++ b/resources/prosody-plugins/mod_filter_iq_rayo.lua@@ -3,7 +3,6 @@ local new_throttle = require "util.throttle".create;local st = require "util.stanza";local jid = require "util.jid";-local token_util = module:require "token/util".new(module);local util = module:require 'util';local is_admin = util.is_admin;local room_jid_match_rewrite = util.room_jid_match_rewrite;@@ -24,11 +23,6 @@ if main_muc_component_host == nil thenendlocal main_muc_service;--- no token configuration but required-if token_util == nil then- module:log("error", "no token configuration but it is required");- return;-end-- this is the main virtual host of the main prosody that this vnode serveslocal main_domain = module:get_option_string('main_domain');@@ -38,6 +32,21 @@ local is_visitor_prosody = main_domain ~= nil;-- this is the main virtual host of this vnodelocal local_domain = module:get_option_string('muc_mapper_domain_base');+local parentCtx = module:context(local_domain);+if parentCtx == nil then+ log("error",+ "Failed to start - unable to get parent context for host: %s",+ tostring(local_domain));+ return;+end+local token_util = module:require "token/util".new(parentCtx);++-- no token configuration but required+if token_util == nil then+ module:log("error", "no token configuration but it is required");+ return;+end+-- The maximum number of simultaneous calls,-- and also the maximum number of new calls per minute that a session is allowed to create.local limit_outgoing_calls;