summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openvpn
diff options
context:
space:
mode:
authorjose1711 <jose1711@gmail.com>2017-06-26 00:06:57 +0200
committerFlorian Eckert <fe@dev.tdt.de>2019-07-17 09:32:09 +0200
commitc48fccc31029f3471c37a90c14bde2a8acd47ce7 (patch)
treec822396a6b555dc2ee196ed11b48f6943fdd9e63 /applications/luci-app-openvpn
parentc58d5f6977236b1dfb60ff4f4e19b86ee2b3d92a (diff)
luci-app-openvpn: fix client_disconnect OpenVPN option
This option is not a flag. Signed-off-by: Jose Riha <jose1711@gmail.com> [Changed commit message and add missing Singed-off-by] Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-openvpn')
-rw-r--r--applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
index 40201baceb..41581f4c7e 100644
--- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
+++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua
@@ -142,9 +142,9 @@ local knownParams = {
"client_connect",
"/usr/bin/ovpn-clientconnect",
translate("Run script cmd on client connection") },
- { Flag,
+ { Value,
"client_disconnect",
- 0,
+ "/usr/bin/ovpn-clientdisconnect",
translate("Run script cmd on client disconnection") },
{ Value,
"learn_address",