Skip to content

Commit

Permalink
luci-app-https-dns-proxy: bugfix: dnsmasq_instance parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Stan Grishin <[email protected]>
  • Loading branch information
stangri committed Feb 14, 2024
1 parent 05af14b commit 5800b95
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 385 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ return view.extend({
"dnsmasq_config_update_option",
_("Update DNSMASQ Config on Start/Stop"),
_(
"If update option is selected, the %s'DNS Forwards' section of DHCP and DNS%s will be automatically updated to use selected DoH providers (%smore information%s)."
"If update option is selected, the %s'DNS forwardings' section of DHCP and DNS%s will be automatically updated to use selected DoH providers (%smore information%s)."
).format(
'<a href="' + L.url("admin", "network", "dhcp") + '">',
"</a>",
Expand All @@ -100,13 +100,15 @@ return view.extend({
section_id,
"dnsmasq_config_update"
);
switch (val) {
case "*":
case "-":
return val;
default:
return "+";
}
if (val && val[0]) {
switch (val[0]) {
case "*":
case "-":
return val[0];
default:
return "+";
}
} else return "*";
};
o.write = function (section_id, formvalue) {
L.uci.set(pkg.Name, section_id, "dnsmasq_config_update", formvalue);
Expand Down
Loading

0 comments on commit 5800b95

Please sign in to comment.