luci-app-uhttpd: Fix certificate parameter section
authorAlexander Schlarb <alexander255@users.noreply.github.com>
Sat, 19 Aug 2017 16:53:49 +0000 (18:53 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 20 Aug 2017 05:30:21 +0000 (08:30 +0300)
Signed-off-by: Alexander Schlarb <alexander@ninetailed.ninja>
applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua

index 03821ad..a61e58a 100644 (file)
@@ -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