From c084570d063fd64db6f8a42a0b1d5270d8831d83 Mon Sep 17 00:00:00 2001 From: Matthew Hagan Date: Sat, 16 Oct 2021 13:28:46 +0100 Subject: [PATCH] luci-proto-openfortivpn: add persistent reconnect option Add ability to specify persistent reconnection interval. Signed-off-by: Matthew Hagan --- .../htdocs/luci-static/resources/protocol/openfortivpn.js | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2