From 1eb3f734c7f4830022f99e304d38156c2520c676 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Fri, 14 Sep 2018 08:57:06 +0200 Subject: [PATCH] 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 --- applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua index a6b0e1dd90..93a901e9b8 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") -- 2.30.2