luci-proto-openfortivpn: add persistent reconnect option

Add ability to specify persistent reconnection interval.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
This commit is contained in:
Matthew Hagan 2021-10-16 13:28:46 +01:00
parent 1f01a661c9
commit c084570d06

View 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;