luci-mod-network: restore DNS option semantics for proto static
The peerdns settings makes little practical sense for proto:static interfaces, so revert to allow setting the DNS server list directly. Fixes:faad7464a8
("luci-mod-network: add support for network.device sections") Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit2bfd4908a9
)
This commit is contained in:
parent
a3ec9b262d
commit
7684c18604
1 changed files with 2 additions and 0 deletions
|
@ -680,9 +680,11 @@ return view.extend({
|
|||
o.default = o.enabled;
|
||||
|
||||
o = nettools.replaceOption(s, 'advanced', form.Flag, 'peerdns', _('Use DNS servers advertised by peer'), _('If unchecked, the advertised DNS server addresses are ignored'));
|
||||
o.depends({ 'proto': 'static', '!reverse': true });
|
||||
o.default = o.enabled;
|
||||
|
||||
o = nettools.replaceOption(s, 'advanced', form.DynamicList, 'dns', _('Use custom DNS servers'));
|
||||
o.depends('proto', 'static');
|
||||
o.depends('peerdns', '0');
|
||||
o.datatype = 'ipaddr';
|
||||
|
||||
|
|
Loading…
Reference in a new issue