luci-proto-openconnect: Add options proxy server and reconnect timeout support
authorDavid Bentham <db260179@gmail.com>
Sat, 10 Sep 2022 13:30:37 +0000 (14:30 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 7 Feb 2023 10:54:48 +0000 (11:54 +0100)
Signed-off-by: David Bentham <db260179@gmail.com>
(cherry picked from commit 1f25483953dc20e2d8521a1b8f9528420b5b817a)

protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js

index 2c29614aeecc32a26901dd9b689e03b385cb0e19..91ad65cb342cf5dd230171512334f63567d93c9c 100644 (file)
@@ -116,6 +116,9 @@ return network.registerProtocol('openconnect', {
 
                o = s.taboption('general', form.Value, 'password2', _('Password2'));
                o.password = true;
+       
+               o = s.taboption('general', form.Value, 'proxy', _('Proxy Server'));
+               o.optional = true;
 
                o = s.taboption('general', form.TextValue, 'usercert', _('User certificate (PEM encoded)'));
                o.rows = 10;
@@ -157,5 +160,10 @@ return network.registerProtocol('openconnect', {
                o.optional = true;
                o.placeholder = 1406;
                o.datatype = 'range(68, 9200)';
+               
+               o = s.taboption('advanced', form.Value, 'reconnect_timeout', _('Reconnect Timeout'));
+               o.optional = true;
+               o.placeholder = 300;
+               o.datatype = 'min(10)';
        }
 });