mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
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:
@@ -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.'));
|
||||
|
||||
@@ -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.'));
|
||||
|
||||
Reference in New Issue
Block a user