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 ffc0ffe
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 384 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ffc0ffe

Please sign in to comment.