mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 18:41:54 +08:00
luci-app-https-dns-proxy: bugfix: dnsmasq_instance parsing
Signed-off-by: Stan Grishin <stangri@melmac.ca>
This commit is contained in:
+9
-7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user