Skip to content

Commit

Permalink
Merge pull request #6914 from stangri/master-luci-app-https-dns-proxy
Browse files Browse the repository at this point in the history
luci-app-https-dns-proxy: bugfix: dnsmasq_instance parsing
  • Loading branch information
stangri authored Feb 16, 2024
2 parents 13ab72d + ffc0ffe commit 29772a6
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 29772a6

Please sign in to comment.