summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
diff options
context:
space:
mode:
authorVladimir Ulrich <admin@evl.su>2016-06-23 19:12:18 +0300
committerJo-Philipp Wich <jo@mein.io>2016-06-28 16:40:23 +0200
commit52de960bb538cdd279d882cd7e23494b077d9989 (patch)
tree622861a317b3fe6ecbd829afc701617fc46d73db /applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
parentaf9d1b02a9dc0c0e725f13a944ec04580e49295a (diff)
luci-app-openvpn: various fixes and optimizations
Closes #628 as suggestion was implemented and tested. Added PID handling function (Fixes https://dev.openwrt.org/ticket/21506). Signed-off-by: Vladimir Ulrich <admin@evl.su>
Diffstat (limited to 'applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
index af515fc59a..1bbee83c35 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
@@ -235,7 +235,6 @@ for _, option in ipairs(params) do
o.value = option[3]
else
if option[1] == DynamicList then
- o.cast = nil
function o.cfgvalue(...)
local val = AbstractValue.cfgvalue(...)
return ( val and type(val) ~= "table" ) and { val } or val