luci-proto-openconnect: add vpn_procotol support

see https://github.com/openwrt/packages/pull/13763

Signed-off-by: Mengyang Li <mayli.he@gmail.com>
This commit is contained in:
Mengyang Li 2020-10-25 14:06:45 -07:00
parent 5a6037a258
commit eeada1a077

View 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)';