luci-proto-openvpn: remove duplicate entries

harmless

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-05-26 18:47:41 +03:00
parent b1a20c42bd
commit a78dc22451
@@ -30,13 +30,6 @@ const openvpnOptions = [
placeholder: '1194', placeholder: '1194',
label: _('TCP/UDP port # for both local and remote') 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 Options error: specify only one of --tls-server, --tls-client, or --secret
// --client also needs DCO(?) // --client also needs DCO(?)
{ {
@@ -551,14 +544,6 @@ const openvpnOptions = [
label: _('Local host name or IP address'), label: _('Local host name or IP address'),
placeholder: '0.0.0.0' 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', tab: 'networking',
type: form.Value, type: form.Value,
@@ -1028,13 +1013,6 @@ const openvpnOptions = [
label: _('Replay protection sliding window size'), label: _('Replay protection sliding window size'),
placeholder: '64 15' placeholder: '64 15'
}, },
{
tab: 'cryptography',
type: form.Value,
name: 'replay_window',
label: _('Replay protection sliding window size'),
placeholder: '64 15'
},
{ {
tab: 'cryptography', tab: 'cryptography',
type: form.Flag, type: form.Flag,
@@ -1179,7 +1157,6 @@ const openvpnOptions = [
tab: 'cryptography', tab: 'cryptography',
type: form.Flag, type: form.Flag,
name: 'single_session', name: 'single_session',
datatype: 'uinteger',
label: _('Allow only one session'), label: _('Allow only one session'),
default: 0 default: 0
}, },
@@ -1187,7 +1164,6 @@ const openvpnOptions = [
tab: 'cryptography', tab: 'cryptography',
type: form.Flag, type: form.Flag,
name: 'tls_exit', name: 'tls_exit',
datatype: 'uinteger',
label: _('Exit on TLS negotiation failure'), label: _('Exit on TLS negotiation failure'),
default: 0 default: 0
}, },
@@ -1742,7 +1718,6 @@ return network.registerProtocol('openvpn', {
krp.default = ''; krp.default = '';
krp.monospace = true; krp.monospace = true;
krp.readonly = true; krp.readonly = true;
krp.readonly = true;
krp.rows = 2; krp.rows = 2;
krp.wrap = 90; krp.wrap = 90;
krp.write = function(sid, value) { return; }; krp.write = function(sid, value) { return; };
@@ -1855,6 +1830,7 @@ return network.registerProtocol('openvpn', {
ovconf.cfgvalue = function(sid) { ovconf.cfgvalue = function(sid) {
attachDragDrop(sid); attachDragDrop(sid);
const config_name = `/etc/openvpn/${sid}/${sid}_config.cfg`; 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 => { return fs.read(config_name).then(readresult => {
attachDragDrop(sid); attachDragDrop(sid);
if (readresult == null || readresult === '') { if (readresult == null || readresult === '') {