git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
072d356
)
luci-app-openvpn: fix template based config creation
author
Dirk Brenken
<redacted>
Fri, 14 Sep 2018 06:57:06 +0000
(08:57 +0200)
committer
Dirk Brenken
<redacted>
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 <redacted>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua
index a6b0e1dd902f0c953483326dcc5a4e02a194762c..93a901e9b8f04fe2093c74881cc360bbf3b54546 100644
(file)
--- 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")
git clone https://git.99rst.org/PROJECT