luci-mod-network: add listen_address for dnsmasq in DHCP and DNS tabs

This limits dnsmasq to listen on specific IPs, when an interface might have
multiple IPs.

Closes #6959

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2025-10-25 20:38:26 +02:00
parent 7c1696c420
commit 8210c3a8d7
2 changed files with 10 additions and 0 deletions

View 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.'));

View 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.'));