aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 00:01:21 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 00:01:21 +0200
commita42d72fc8c7bb7ba42852efda2ad115c16bd576f (patch)
tree2c2628b59dff238800c8f306fef5ce0b55d434f6 /plugins
parentc81bc76c2dcb84051b3d4194ee70e48dac8717eb (diff)
downloadprosody-a42d72fc8c7bb7ba42852efda2ad115c16bd576f.tar.gz
prosody-a42d72fc8c7bb7ba42852efda2ad115c16bd576f.zip
mod_bosh: Make BOSH global again!
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 1908e5ed..cab89a0a 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -6,6 +6,8 @@
-- COPYING file in the source package for more information.
--
+module:set_global();
+
local new_xmpp_stream = require "util.xmppstream".new;
local sm = require "core.sessionmanager";
local sm_destroy_session = sm.destroy_session;
@@ -274,11 +276,6 @@ function stream_callbacks.streamopened(context, attr)
["xmlns:stream"] = xmlns_streams, condition = "improper-addressing" });
response:send(tostring(close_reply));
return;
- elseif to_host ~= module.host then
- -- Could be meant for a different instance of the module
- -- if multiple instances are loaded with the same URL then this can happen
- context.ignore_request = true;
- return;
end
if not rid or (not wait and attr.wait or wait < 0 or wait % 1 ~= 0) then
log("debug", "BOSH client sent invalid rid or wait attributes: rid=%s, wait=%s", tostring(attr.rid), tostring(attr.wait));