luci-mod-network: add listen_address for dnsmasq in DHCP and DNS tabs
authorPaul Donald <[email protected]>
Sat, 25 Oct 2025 18:38:26 +0000 (20:38 +0200)
committerPaul Donald <[email protected]>
Tue, 28 Oct 2025 20:01:29 +0000 (21:01 +0100)
This limits dnsmasq to listen on specific IPs, when an interface might have
multiple IPs.

Closes #6959

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dns.js

index 89c17ff46cf8049704fba601bbac758609bb9be2..a6320f0c03e57211f9e73b009fd35a795faeb91d 100644 (file)
@@ -426,6 +426,11 @@ return view.extend({
                o.multiple = true;
                o.nocreate = true;
 
+               o = s.taboption('devices', widgets.IPSelect, 'listen_address',
+                       _('Listen addresses'),
+                       _('Listen only on the specified addresses.'));
+               o.multiple = true;
+
                o = s.taboption('devices', widgets.NetworkSelect, 'notinterface',
                        _('Exclude interfaces'),
                        _('Do not listen on the specified interfaces.'));
index 006380a78f1651a5ad131f6505d95bf57f0a85b5..a2750fbbf6fa6c4d5ec53e7a04bfaefb56bea424 100644 (file)
@@ -286,6 +286,11 @@ return view.extend({
                o.multiple = true;
                o.nocreate = true;
 
+               o = s.taboption('devices', widgets.IPSelect, 'listen_address',
+                       _('Listen addresses'),
+                       _('Listen only on the specified addresses.'));
+               o.multiple = true;
+
                o = s.taboption('devices', widgets.NetworkSelect, 'notinterface',
                        _('Exclude interfaces'),
                        _('Do not listen on the specified interfaces.'));