summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-09-14 08:57:06 +0200
committerDirk Brenken <dev@brenken.org>2018-09-14 08:57:06 +0200
commit1eb3f734c7f4830022f99e304d38156c2520c676 (patch)
tree43daf5d404872c2f4615a6fd67763b311ba5394c
parent072d3568167fd77462576ce9dd51edd946774cd8 (diff)
luci-app-openvpn: fix template based config creation
* minimal fix to bring back openvpn config creation based on openvpn_recipes template, fix for #2146 Signed-off-by: Dirk Brenken <dev@brenken.org>
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
index a6b0e1dd9..93a901e9b 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
@@ -59,7 +59,7 @@ function s.create(self, name)
if #name > 3 and not name:match("[^a-zA-Z0-9_]") then
uci:section(
"openvpn", "openvpn", name,
- uci:get_all( "openvpn_recipes", recipe )
+ { uci:get_all( "openvpn_recipes", recipe ) }
)
uci:delete("openvpn", name, "_role")