aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-14 21:42:08 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-14 21:42:08 +0000
commit829f9e222487d456c88f9624f613bdd37a9f80dd (patch)
tree2638511d2937469d27861b71a8368683ca0e18d5 /plugins/mod_c2s.lua
parenta156128a90397ec050ca3c2296d6d23e7308f3e6 (diff)
downloadprosody-829f9e222487d456c88f9624f613bdd37a9f80dd.tar.gz
prosody-829f9e222487d456c88f9624f613bdd37a9f80dd.zip
mod_c2s: Use module:add_item() to add the net-provider for portmanager
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 682c4e3b..e3557492 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -220,13 +220,15 @@ function listener.associate_session(conn, session)
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";
});