Software /
code /
prosody
Comparison
plugins/mod_c2s.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 | 4620:e9dc6ae68c69 |
child | 4626:9df9e87d0339 |
comparison
equal
deleted
inserted
replaced
4624:3e4715d44561 | 4625:325965bafae1 |
---|---|
29 local opt_keepalives = module:get_option_boolean("tcp_keepalives", false); | 29 local opt_keepalives = module:get_option_boolean("tcp_keepalives", false); |
30 | 30 |
31 local sessions = module:shared("sessions"); | 31 local sessions = module:shared("sessions"); |
32 | 32 |
33 local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza }; | 33 local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza }; |
34 local listener = { default_port = 5222, default_mode = "*a" }; | 34 local listener = {}; |
35 | 35 |
36 --- Stream events handlers | 36 --- Stream events handlers |
37 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; | 37 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; |
38 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; | 38 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; |
39 | 39 |