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:
parent
1f01a661c9
commit
c084570d06
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue