Software /
code /
prosody
Comparison
plugins/s2s/mod_s2s.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 | 4601:4007b9f9aa5f |
child | 4620:e9dc6ae68c69 |
comparison
equal
deleted
inserted
replaced
4609:83a5377ffea2 | 4610:171051f9dd00 |
---|---|
465 initialize_session(session); | 465 initialize_session(session); |
466 end | 466 end |
467 | 467 |
468 s2sout.set_listener(listener); | 468 s2sout.set_listener(listener); |
469 | 469 |
470 require "core.portmanager".register_service("s2s", { | 470 module:add_item("net-provider", { |
471 name = "s2s"; | |
471 listener = listener; | 472 listener = listener; |
472 default_port = 5269; | 473 default_port = 5269; |
473 encryption = "starttls"; | 474 encryption = "starttls"; |
474 }); | 475 }); |
475 | 476 |