luci-proto-openconnect: add vpn_procotol support 4542/head
authorMengyang Li <mayli.he@gmail.com>
Sun, 25 Oct 2020 21:06:45 +0000 (14:06 -0700)
committerMengyang Li <mayli.he@gmail.com>
Fri, 30 Oct 2020 20:33:57 +0000 (13:33 -0700)
see https://github.com/openwrt/packages/pull/13763

Signed-off-by: Mengyang Li <mayli.he@gmail.com>
protocols/luci-proto-openconnect/htdocs/luci-static/resources/protocol/openconnect.js

index 1f07f975137de9d8297f7194f55cf15f2afa9f29..388812d893f4da058e24f46b7fcd961cc39513cc 100644 (file)
@@ -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)';