Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 4610:171051f9dd00
mod_c2s: Use module:add_item() to add the net-provider for portmanager
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 14 Mar 2012 21:42:08 +0000 |
parent | 4551:8f25f3b1c62f |
child | 4620:e9dc6ae68c69 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Wed Mar 14 21:40:14 2012 +0000 +++ b/plugins/mod_c2s.lua Wed Mar 14 21:42:08 2012 +0000 @@ -220,13 +220,15 @@ sessions[conn] = session; end -portmanager.register_service("c2s", { +module:add_item("net-provider", { + name = "c2s"; listener = listener; default_port = 5222; encryption = "starttls"; }); -portmanager.register_service("legacy_ssl", { +module:add_item("net-provider", { + name = "legacy_ssl"; listener = listener; encryption = "ssl"; });