luci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries
Signed-off-by: Stan Grishin <stangri@melmac.net>
This commit is contained in:
parent
b7ee57adaf
commit
95cf843774
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ LUCI_TITLE:=HTTPS DNS Proxy Web UI
|
||||||
LUCI_DESCRIPTION:=Provides Web UI for HTTPS DNS Proxy
|
LUCI_DESCRIPTION:=Provides Web UI for HTTPS DNS Proxy
|
||||||
LUCI_DEPENDS:=+luci-mod-admin-full +https_dns_proxy
|
LUCI_DEPENDS:=+luci-mod-admin-full +https_dns_proxy
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
include ../../luci.mk
|
include ../../luci.mk
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,8 @@ prov.write = function(self, section, value)
|
||||||
if n == 0 then
|
if n == 0 then
|
||||||
uci:delete("dhcp", "@dnsmasq[0]", "server")
|
uci:delete("dhcp", "@dnsmasq[0]", "server")
|
||||||
end
|
end
|
||||||
uci_del_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_add_list("dhcp", "@dnsmasq[0]", "server", tostring(la_val) .. "#" .. tostring(lp_val))
|
||||||
uci:save("dhcp")
|
uci:save("dhcp")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue