diff --git a/protocols/luci-proto-openvpn/htdocs/luci-static/resources/protocol/openvpn.js b/protocols/luci-proto-openvpn/htdocs/luci-static/resources/protocol/openvpn.js index 956e91c3c5..84f27a7b4c 100644 --- a/protocols/luci-proto-openvpn/htdocs/luci-static/resources/protocol/openvpn.js +++ b/protocols/luci-proto-openvpn/htdocs/luci-static/resources/protocol/openvpn.js @@ -50,7 +50,7 @@ const openvpnOptions = [ tab: 'general', type: form.DynamicList, name: 'remote', - datatype: 'tuple(host,port,string)', + datatype: 'or(host,tuple(host,port),tuple(host,port,string))', label: _('Remote host name or IP address'), placeholder: '1.2.3.4' }, @@ -381,14 +381,6 @@ const openvpnOptions = [ label: _('Run up/down scripts for all restarts'), default: 0 }, - { - tab: 'scripts', - depends: { script_security: /[1-3]/ }, - type: form.Value, - name: 'route_pre_up', - placeholder: '/usr/bin/ovpn-routepreup', - label: _('Execute shell cmd before routes are added') - }, { tab: 'scripts', depends: { script_security: /[1-3]/ }, @@ -458,7 +450,7 @@ const openvpnOptions = [ depends: { script_security: /[1-3]/ }, type: form.Value, name: 'tls_crypt_v2_verify', - placeholder: '/usr/bin/ovpn-tlscryp2v2verify', + placeholder: '/usr/bin/ovpn-tlscryptv2verify', label: _('Run script cmd for client TLS verification') }, { @@ -1341,15 +1333,19 @@ const openvpnOptions = [ /* Push/Client */ { tab: 'push_opt', - depends: { server: "", "!reverse": true }, type: form.DynamicList, name: 'push', label: _('Push options to peer'), lvalues: ['redirect-gateway'] - }, // values: ['comp-lzo'] + }, + { + tab: 'push_opt', + type: form.DynamicList, + name: 'push_remove', + label: _('Remove Push options'), + }, { tab: 'push_opt', - depends: { server: "", "!reverse": true }, type: form.Flag, name: 'push_reset', label: _('Don\'t inherit global push options'),