luci-app-mosquitto: add option 'allow anonymous'
authorPtilopsis Leucotis <[email protected]>
Sat, 14 May 2022 17:56:23 +0000 (20:56 +0300)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:18:33 +0000 (13:18 +0200)
Add missed option 'allow anonymous' in mosquitto section.

Signed-off-by: Ptilopsis Leucotis <[email protected]>
(cherry picked from commit 4e3d6c15640aad5df6280a619a3fa808595b903d)

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

index 3ba88e5ac465bc201d60f35932a82ca4fc7e82fb..66591f0bed73be53c8385e7a05618854190abfa4 100644 (file)
@@ -58,6 +58,7 @@ o = s:option(Value, "sys_interval", _("Time in seconds between updates of the $S
 o.datatype = "uinteger"
 o.optional = true
 
+OptionalFlag(s, "allow_anonymous", _("Allow anonymous connections"), _("Allow to connect without providing a username and password"))
 o = s:option(Value, "max_inflight_messages", _("Max Inflight Messages"), _("Limit for message allowed inflight"))
 o.datatype = "uinteger"
 o.optional = true