Mercurial > prosody-modules
changeset 5831:801f64e6d4e9
mod_pubsub_mqtt: Add TLS port (default 8883) for MQTT connections
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 30 Jan 2024 14:11:35 +0000 |
parents | b109773ce6fe |
children | 5afc8273c5ef |
files | mod_pubsub_mqtt/mod_pubsub_mqtt.lua |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Wed Jan 24 17:55:26 2024 +0100 +++ b/mod_pubsub_mqtt/mod_pubsub_mqtt.lua Tue Jan 30 14:11:35 2024 +0000 @@ -166,6 +166,13 @@ listener = mqtt_listener; }); +module:provides("net", { + name = "pubsub_mqtt_tls" + encryption = "ssl"; + default_port = 8883; + listener = mqtt_listener; +}); + function module.add_host(module) local pubsub_module = hosts[module.host].modules.pubsub if pubsub_module then