Comparison

plugins/s2s/mod_s2s.lua @ 4625:325965bafae1

mod_c2s, mod_s2s: Drop default_port and default_mode from listener objects (default_port is deprecated, and default_mode already defaults to *a)
author Matthew Wild <mwild1@gmail.com>
date Thu, 15 Mar 2012 16:31:10 +0000
parent 4622:9eccb5a27989
child 4630:9502c0224caf
comparison
equal deleted inserted replaced
4624:3e4715d44561 4625:325965bafae1
315 if stanza then 315 if stanza then
316 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr); 316 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr);
317 end 317 end
318 end 318 end
319 319
320 local listener = { default_port = 5269, default_mode = "*a" }; 320 local listener = {};
321 321
322 --- Session methods 322 --- Session methods
323 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; 323 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'};
324 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; 324 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" };
325 local function session_close(session, reason, remote_reason) 325 local function session_close(session, reason, remote_reason)