luci-proto-openfortivpn: add persistent reconnect option
authorMatthew Hagan <mnhagan88@gmail.com>
Sat, 16 Oct 2021 12:28:46 +0000 (13:28 +0100)
committerMatthew Hagan <mnhagan88@gmail.com>
Wed, 10 Aug 2022 22:03:58 +0000 (23:03 +0100)
Add ability to specify persistent reconnection interval.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js

index a86875bce762ca6a9cd5e88a50b6d7be2a041510..1542c5ae6b19ef754952c188870a7f859ab2461a 100644 (file)
@@ -144,6 +144,11 @@ return network.registerProtocol('openfortivpn', {
                o.nocreate = true;
                o.optional = true;
 
+               o = s.taboption('advanced', form.Value, 'persist_int', _('Persistent reconnect interval'), _("Optional, in seconds. If set to '0', no reconnect is attempted."));
+               o.placeholder = '0';
+               o.datatype = 'uinteger';
+               o.optional = true;
+
                o = s.taboption('advanced', form.Value, 'trusted_cert', _("VPN Server's certificate SHA1 hash"));
                o.datatype = 'and(hexstring,length(64))'
                o.optional = true;