diff options
author | Matthew Hagan <mnhagan88@gmail.com> | 2021-10-16 13:28:46 +0100 |
---|---|---|
committer | Matthew Hagan <mnhagan88@gmail.com> | 2022-08-10 23:03:58 +0100 |
commit | c084570d063fd64db6f8a42a0b1d5270d8831d83 (patch) | |
tree | b57f4e410b0aa2f303cfcd9040f35498b718509c /protocols/luci-proto-openfortivpn | |
parent | 1f01a661c9e39da4e2fcf2a77cbd2bfeb3d0bc93 (diff) |
luci-proto-openfortivpn: add persistent reconnect option
Add ability to specify persistent reconnection interval.
Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Diffstat (limited to 'protocols/luci-proto-openfortivpn')
-rw-r--r-- | protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js index a86875bce7..1542c5ae6b 100644 --- a/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js +++ b/protocols/luci-proto-openfortivpn/htdocs/luci-static/resources/protocol/openfortivpn.js @@ -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; |