mosquitto: support notifications_local_only flag 4420/head
authorKarl Palsson <karlp@etactica.com>
Wed, 2 Sep 2020 09:09:38 +0000 (09:09 +0000)
committerKarl Palsson <karlp@etactica.com>
Tue, 8 Sep 2020 10:52:17 +0000 (10:52 +0000)
Supported since mosquitto 1.5 released in May 2018, and has long
been supported in the init scripts.

Signed-off-by: Karl Palsson <karlp@etactica.com>
applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua

index c687cf744e845e0a55af1c0bdc4c7c63ec65b256..1fc9d1df456d617c98b6cbea72bb5d904edc5f00 100644 (file)
@@ -160,6 +160,7 @@ OptionalFlag(s, "cleansession", "Clean session")
 OptionalFlag(s, "notifications", "notifications",
     "Attempt to notify the local and remote broker of connection status, defaults to $SYS/broker/connections/<clientid>/state")
 s:option(Value, "notification_topic", "Topic to use for local+remote remote for notifications.").optional = true
+OptionalFlag(s, "notification_local_only", "Notifications local only", "Bridge connection states should only be published locally")
 
 s:option(Value, "remote_clientid", "Client id to use on remote end of this bridge connection").optional = true
 s:option(Value, "local_clientid", "Client id to use locally. Important when bridging to yourself").optional = true