luci-app-mosquitto: add bind_address property using IPSelect widget
authorPaul Donald <[email protected]>
Tue, 28 Oct 2025 19:59:45 +0000 (20:59 +0100)
committerPaul Donald <[email protected]>
Tue, 28 Oct 2025 20:01:30 +0000 (21:01 +0100)
Closes #8046

Signed-off-by: Paul Donald <[email protected]>
applications/luci-app-mosquitto/htdocs/luci-static/resources/view/mosquitto/mosquitto.js

index 20bc4aa1e275eacd91586c4e080973fb39be66db..e79965a7ce2f3140d08c91e950d5efd2beb5e2c4 100644 (file)
@@ -1,6 +1,7 @@
 'use strict';
 'require form';
 'require view';
+'require widgets';
 
 // OptionalFlag helper function
 function OptionalFlag(section, key, title, description) {
@@ -94,6 +95,9 @@ return view.extend({
                s.anonymous = true;
                s.addremove = true;
 
+               o = s.option(widgets.IPSelect, 'bind_address', _('Bind Addres'));
+               o.multiple = false;
+
                o = s.option(form.Value, 'port', _('Port'));
                o.datatype = 'port';