From 2bb1abd5ec654a6bdb02c3695953a81fa581dbd4 Mon Sep 17 00:00:00 2001 From: Alexander Schlarb Date: Sat, 19 Aug 2017 18:53:49 +0200 Subject: luci-app-uhttpd: Fix certificate parameter section Signed-off-by: Alexander Schlarb (cherry picked from commit ab6485693834f7f66ff280d08abeec6e68265783) --- applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3