From a78dc224512ac21de27ebc58b6afdde655060b5a Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 26 May 2026 18:47:41 +0300 Subject: [PATCH] luci-proto-openvpn: remove duplicate entries harmless Signed-off-by: Paul Donald --- .../luci-static/resources/protocol/openvpn.js | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) 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 bd39fa0e62..4ac39239b4 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 @@ -30,13 +30,6 @@ const openvpnOptions = [ placeholder: '1194', label: _('TCP/UDP port # for both local and remote') }, - { - tab: 'general', - type: form.Flag, - name: 'nobind', - label: _('Do not bind to local address and port'), - default: 0 - }, // --client Options error: specify only one of --tls-server, --tls-client, or --secret // --client also needs DCO(?) { @@ -551,14 +544,6 @@ const openvpnOptions = [ label: _('Local host name or IP address'), placeholder: '0.0.0.0' }, - { - tab: 'networking', - type: form.Value, - name: 'port', - datatype: 'port', - label: _('TCP/UDP port # for both local and remote'), - placeholder: 1194 - }, { tab: 'networking', type: form.Value, @@ -1028,13 +1013,6 @@ const openvpnOptions = [ label: _('Replay protection sliding window size'), placeholder: '64 15' }, - { - tab: 'cryptography', - type: form.Value, - name: 'replay_window', - label: _('Replay protection sliding window size'), - placeholder: '64 15' - }, { tab: 'cryptography', type: form.Flag, @@ -1179,7 +1157,6 @@ const openvpnOptions = [ tab: 'cryptography', type: form.Flag, name: 'single_session', - datatype: 'uinteger', label: _('Allow only one session'), default: 0 }, @@ -1187,7 +1164,6 @@ const openvpnOptions = [ tab: 'cryptography', type: form.Flag, name: 'tls_exit', - datatype: 'uinteger', label: _('Exit on TLS negotiation failure'), default: 0 }, @@ -1742,7 +1718,6 @@ return network.registerProtocol('openvpn', { krp.default = ''; krp.monospace = true; krp.readonly = true; - krp.readonly = true; krp.rows = 2; krp.wrap = 90; krp.write = function(sid, value) { return; }; @@ -1855,6 +1830,7 @@ return network.registerProtocol('openvpn', { ovconf.cfgvalue = function(sid) { attachDragDrop(sid); const config_name = `/etc/openvpn/${sid}/${sid}_config.cfg`; + /* call unset if there is no on-disk config.cfg file for this profile */ return fs.read(config_name).then(readresult => { attachDragDrop(sid); if (readresult == null || readresult === '') {