luci-app-https_dns_proxy: bugfix: proper formatting of dhcp server entries 3133/head
authorStan Grishin <stangri@melmac.net>
Mon, 30 Sep 2019 17:49:11 +0000 (10:49 -0700)
committerStan Grishin <stangri@melmac.net>
Mon, 30 Sep 2019 17:49:11 +0000 (10:49 -0700)
Signed-off-by: Stan Grishin <stangri@melmac.net>
applications/luci-app-https_dns_proxy/Makefile
applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua

index afc160723998bfcad5d210dc1d52f60a6af5b437..7af2d1d102bd29ac06a7d58e602465972e01634a 100644 (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
 
index 03a3b4e0834ee1069fb1f3da0c7496869fa443f6..2cc9f303c5c2dbf813d9c500f19905d1a910f9f6 100644 (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