Merge pull request #3133 from stangri/19.07-luci-app-https_dns_proxy

[19.07] luci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries
This commit is contained in:
Florian Eckert 2019-10-08 08:35:40 +02:00 committed by GitHub
commit f59d069d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ LUCI_TITLE:=HTTPS DNS Proxy Web UI
LUCI_DESCRIPTION:=Provides Web UI for HTTPS DNS Proxy
LUCI_DEPENDS:=+luci-mod-admin-full +https_dns_proxy
LUCI_PKGARCH:=all
PKG_RELEASE:=3
PKG_RELEASE:=4
include ../../luci.mk

View file

@ -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