Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hagan <mnhagan88@gmail.com>2021-10-16 15:28:46 +0300
committerMatthew Hagan <mnhagan88@gmail.com>2022-08-11 01:03:58 +0300
commitc084570d063fd64db6f8a42a0b1d5270d8831d83 (patch)
treeb57f4e410b0aa2f303cfcd9040f35498b718509c /protocols/luci-proto-openfortivpn
parent1f01a661c9e39da4e2fcf2a77cbd2bfeb3d0bc93 (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.js5
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;