luci-app-openvpn: fix template based config creation 2149/head
authorDirk Brenken <dev@brenken.org>
Fri, 14 Sep 2018 06:57:06 +0000 (08:57 +0200)
committerDirk Brenken <dev@brenken.org>
Fri, 14 Sep 2018 06:57:06 +0000 (08:57 +0200)
* minimal fix to bring back openvpn config creation based on
openvpn_recipes template, fix for #2146

Signed-off-by: Dirk Brenken <dev@brenken.org>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua

index a6b0e1dd902f0c953483326dcc5a4e02a194762c..93a901e9b8f04fe2093c74881cc360bbf3b54546 100644 (file)
@@ -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")