From c48fccc31029f3471c37a90c14bde2a8acd47ce7 Mon Sep 17 00:00:00 2001 From: jose1711 Date: Mon, 26 Jun 2017 00:06:57 +0200 Subject: [PATCH] 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 --- .../luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua | 4 ++-- 1 file 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", -- 2.30.2