summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-openconnect
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/luci-proto-openconnect')
-rw-r--r--protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js b/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js
index 1f07f97513..2c29614aee 100644
--- a/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js
+++ b/protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js
@@ -93,6 +93,12 @@ return network.registerProtocol('openconnect', {
certLoadPromise = null,
o;
+ o = s.taboption('general', form.ListValue, 'vpn_protocol', _('VPN Protocol'));
+ o.value('anyconnect', 'Cisco AnyConnect SSL VPN');
+ o.value('nc', 'Juniper Network Connect');
+ o.value('gp', 'GlobalProtect SSL VPN');
+ o.value('pulse', 'Pulse Connect Secure SSL VPN');
+
o = s.taboption('general', form.Value, 'server', _('VPN Server'));
o.datatype = 'host(0)';
@@ -147,14 +153,6 @@ return network.registerProtocol('openconnect', {
return callSetCertificateFiles(section_id, null, null, sanitizeCert(value));
};
- o = s.taboption('advanced', form.Flag, 'defaultroute', _('Default gateway'), _('If unchecked, no default route is configured'));
- o.default = o.enabled;
-
- o = s.taboption('advanced', form.Value, 'metric', _('Use gateway metric'));
- o.placeholder = '0';
- o.datatype = 'uinteger';
- o.depends('defaultroute', '1');
-
o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU'));
o.optional = true;
o.placeholder = 1406;