From: jose1711 Date: Sun, 25 Jun 2017 22:06:57 +0000 (+0200) Subject: luci-app-openvpn: fix client_disconnect OpenVPN option X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c48fccc31029f3471c37a90c14bde2a8acd47ce7;p=oweals%2Fluci.git luci-app-openvpn: fix client_disconnect OpenVPN option This option is not a flag. Signed-off-by: Jose Riha [Changed commit message and add missing Singed-off-by] Signed-off-by: Florian Eckert --- 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 40201bace..41581f4c7 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",