Merge pull request #4421 from etactica/mos-nlocal-only-master
authorJo-Philipp Wich <jo@mein.io>
Fri, 30 Oct 2020 20:26:22 +0000 (21:26 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 20:26:22 +0000 (21:26 +0100)
master: mosquitto: support notifications_local_only flag

applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua

index 0b0467e9a0e39abebf79c91a26472f549a4af54a..3ba88e5ac465bc201d60f35932a82ca4fc7e82fb 100644 (file)
@@ -161,6 +161,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