summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https_dns_proxy/luasrc/model/cbi
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2019-09-30 10:48:48 -0700
committerStan Grishin <stangri@melmac.net>2019-09-30 10:48:48 -0700
commit95cf84377450afa1a4b9951dd746b6bbae4e90af (patch)
tree2c1e2b875a2504a57ca5cbcee9fbebb65196f0af /applications/luci-app-https_dns_proxy/luasrc/model/cbi
parentb7ee57adaf97869c24a88c90617bb402731b5817 (diff)
luci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-https_dns_proxy/luasrc/model/cbi')
-rw-r--r--applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua b/applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua
index 03a3b4e083..2cc9f303c5 100644
--- a/applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua
+++ b/applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua
@@ -75,8 +75,8 @@ prov.write = function(self, section, value)
if n == 0 then
uci:delete("dhcp", "@dnsmasq[0]", "server")
end
- uci_del_list("dhcp", "@dnsmasq[0]", "server", tostring(la_val) .. ":" .. tostring(lp_val))
- uci_add_list("dhcp", "@dnsmasq[0]", "server", tostring(la_val) .. ":" .. tostring(lp_val))
+ uci_del_list("dhcp", "@dnsmasq[0]", "server", tostring(la_val) .. "#" .. tostring(lp_val))
+ uci_add_list("dhcp", "@dnsmasq[0]", "server", tostring(la_val) .. "#" .. tostring(lp_val))
uci:save("dhcp")
end