luci-app-openvpn: fix client_disconnect OpenVPN option
authorjose1711 <jose1711@gmail.com>
Sun, 25 Jun 2017 22:06:57 +0000 (00:06 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 17 Jul 2019 07:32:09 +0000 (09:32 +0200)
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>
applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua

index 40201baceb871a3cf2997d58cc0a470cab8de02f..41581f4c7e798ea5772b91ded7effe293946d59a 100644 (file)
@@ -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",