Merge pull request #2149 from dibdot/openvpn-fix

luci-app-openvpn: fix template based config creation
This commit is contained in:
Dirk Brenken 2018-09-16 08:42:21 +02:00 committed by GitHub
commit 5cb6c1c698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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")