summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander Schlarb <alexander255@users.noreply.github.com>2017-08-19 18:53:49 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2017-08-20 08:51:23 +0300
commit2bb1abd5ec654a6bdb02c3695953a81fa581dbd4 (patch)
treec5ca4841696dcbf3e7f1d27c39288b2825d4b349
parent9ee26ac81820ac0c60aff77d2fe37d5d0dd93458 (diff)
luci-app-uhttpd: Fix certificate parameter section
Signed-off-by: Alexander Schlarb <alexander@ninetailed.ninja> (cherry picked from commit ab6485693834f7f66ff280d08abeec6e68265783)
-rw-r--r--applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua b/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
index 03821ad9b..a61e58ad5 100644
--- a/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
+++ b/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua
@@ -202,7 +202,10 @@ o = ucs:taboption("advanced", Value, "max_requests", translate("Maximum number o
o.optional = true
o.datatype = "uinteger"
-local s = m:section(NamedSection, "px5g", "cert", translate("uHTTPd Self-signed Certificate Parameters"))
+local s = m:section(TypedSection, "cert", translate("uHTTPd Self-signed Certificate Parameters"))
+
+s.template = "cbi/tsection"
+s.anonymous = true
o = s:option(Value, "days", translate("Valid for # of Days"))
o.default = 730