summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https_dns_proxy
diff options
context:
space:
mode:
authoralphakk <kkspaces@mail.com>2018-11-15 12:06:09 +0800
committerJo-Philipp Wich <jo@mein.io>2018-11-15 07:45:49 +0100
commit8aeb78d1c1893e1bcf0e3a8f8a2c17fa6ffbb6d2 (patch)
treed1d15f5b5168a0b2d690a4bb63041cbbb8033707 /applications/luci-app-https_dns_proxy
parentf4212285d474a9f75a55d7c39ae1ac70dc04d1e0 (diff)
luci-app-https_dns_proxy: fix datatype of subnet address option
The datatype ip4prefix only accept numbers from 0 to 32, not subnet/mask (i.e. 192.168.1.0/24), this affects option "-e". https://github.com/openwrt/luci/wiki/Datatypes#ip4prefix the description is wrong, according to src http://luci.subsignal.org/trac/browser/luci/branches/luci-0.10/libs/web/luasrc/cbi/datatypes.lua#L76 Submitted-by: alphakk <kkspaces@mail.com> [slightly reword commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-https_dns_proxy')
-rw-r--r--applications/luci-app-https_dns_proxy/luasrc/model/cbi/https_dns_proxy.lua2
1 files changed, 1 insertions, 1 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 61511a4130..20d486f378 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
@@ -43,7 +43,7 @@ lp.rmempty = true
-- group.rmempty = true
sa = s3:option(Value, "subnet_addr", translate("Subnet address"))
-sa.datatype = "ip4prefix"
+sa.datatype = "ip4addr"
sa.rmempty = true
ps = s3:option(Value, "proxy_server", translate("Proxy server"))