plugins/mod_bosh.lua
changeset 11731 f3aee8a825cc
parent 11564 3bbb1af92514
child 11737 27699cc148df
equal deleted inserted replaced
11730:76156c675456 11731:f3aee8a825cc
   291 			response:send(tostring(close_reply));
   291 			response:send(tostring(close_reply));
   292 			return;
   292 			return;
   293 		end
   293 		end
   294 
   294 
   295 		if not prosody.hosts[to_host] then
   295 		if not prosody.hosts[to_host] then
   296 			log("debug", "BOSH client tried to connect to non-existant host: %s", attr.to);
   296 			log("debug", "BOSH client tried to connect to non-existent host: %s", attr.to);
   297 			report_bad_host();
   297 			report_bad_host();
   298 			local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate",
   298 			local close_reply = st.stanza("body", { xmlns = xmlns_bosh, type = "terminate",
   299 				["xmlns:stream"] = xmlns_streams, condition = "improper-addressing" });
   299 				["xmlns:stream"] = xmlns_streams, condition = "improper-addressing" });
   300 			response:send(tostring(close_reply));
   300 			response:send(tostring(close_reply));
   301 			return;
   301 			return;