diff options
Diffstat (limited to 'applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua')
-rw-r--r-- | applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua b/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua index 964da447e..cadf558bf 100644 --- a/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua +++ b/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua @@ -61,7 +61,12 @@ p.instance = arg[1] local s = m:section( NamedSection, arg[1], "openvpn" ) for _, option in ipairs(basicParams) do - local o = s:option(option[1], option[2]) + local o = s:option( + option[1], option[2], + translate("openvpn_param_%s" % option[2]), + translate("openvpn_param_%s_desc" % option[2]) + ) + o.optional = true if option[1] == DummyValue then |