mod_pubsub_mqtt: Add TLS port (default 8883) for MQTT connections
authorMatthew Wild <mwild1@gmail.com>
Tue, 30 Jan 2024 14:11:35 +0000
changeset 5835 801f64e6d4e9
parent 5834 b109773ce6fe
child 5836 5afc8273c5ef
mod_pubsub_mqtt: Add TLS port (default 8883) for MQTT connections
mod_pubsub_mqtt/mod_pubsub_mqtt.lua
--- 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