Software /
code /
prosody
Changeset
9377:f2013233e20d
mod_bosh: Make BOSH global again!
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 00:01:21 +0200 |
parents | 9376:220468f7a103 |
children | 9378:a6f54df39624 |
files | plugins/mod_bosh.lua |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Fri Sep 21 23:49:56 2018 +0200 +++ b/plugins/mod_bosh.lua Sat Sep 22 00:01:21 2018 +0200 @@ -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 @@ ["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));