luci-app-mosquitto: fix notifications_local_only flag
authorSebastian Krzyszkowiak <dos@dosowisko.net>
Wed, 26 Jul 2023 22:34:40 +0000 (00:34 +0200)
committerSebastian Krzyszkowiak <dos@dosowisko.net>
Wed, 26 Jul 2023 22:34:40 +0000 (00:34 +0200)
The option wasn't being applied at all because of a typo.

Fixes: 596c2919f6b2 ("mosquitto: support notifications_local_only flag")
Signed-off-by: Sebastian Krzyszkowiak <dos@dosowisko.net>
applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua

index 66591f0bed73be53c8385e7a05618854190abfa4..c4a83b57ff1262e338b7e5b5d61791dfe96dbb95 100644 (file)
@@ -162,7 +162,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"))
+OptionalFlag(s, "notifications_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