From fb1ef7d905f6444fa9a2dbb9acbff8df41c7934d Mon Sep 17 00:00:00 2001 From: viown <48097677+viown@users.noreply.github.com> Date: Sun, 15 Dec 2024 12:56:55 +0300 Subject: [PATCH] Remove auto port forward options --- src/controllers/dashboard/networking.html | 8 -------- src/controllers/dashboard/networking.js | 11 +++-------- src/controllers/wizard/remote/index.html | 7 ------- src/controllers/wizard/remote/index.js | 3 +-- src/strings/en-us.json | 2 -- 5 files changed, 4 insertions(+), 27 deletions(-) diff --git a/src/controllers/dashboard/networking.html b/src/controllers/dashboard/networking.html index 8204fab74b0..54793ff4446 100644 --- a/src/controllers/dashboard/networking.html +++ b/src/controllers/dashboard/networking.html @@ -96,14 +96,6 @@

${TabNetworking}

- -
- -
${LabelEnableAutomaticPortMapHelp}
-
${LabelPublicHttpPortHelp}
diff --git a/src/controllers/dashboard/networking.js b/src/controllers/dashboard/networking.js index e1fce88fa0e..25bfe8d4eae 100644 --- a/src/controllers/dashboard/networking.js +++ b/src/controllers/dashboard/networking.js @@ -8,8 +8,7 @@ import alert from '../../components/alert'; function onSubmit(e) { const form = this; const localAddress = form.querySelector('#txtLocalAddress').value; - const enableUpnp = form.querySelector('#chkEnableUpnp').checked; - confirmSelections(localAddress, enableUpnp, function () { + confirmSelections(localAddress, function () { const validationResult = getValidationAlert(form); if (validationResult) { @@ -54,7 +53,6 @@ function onSubmit(e) { config.InternalHttpsPort = form.querySelector('#txtHttpsPort').value; config.EnableHttps = form.querySelector('#chkEnableHttps').checked; config.RequireHttps = form.querySelector('#chkRequireHttps').checked; - config.EnableUPnP = enableUpnp; config.BaseUrl = form.querySelector('#txtBaseUrl').value; config.EnableRemoteAccess = form.querySelector('#chkRemoteAccess').checked; config.CertificatePath = form.querySelector('#txtCertificatePath').value || null; @@ -110,8 +108,8 @@ function showAlertText(options) { }); } -function confirmSelections(localAddress, enableUpnp, callback) { - if (localAddress || !enableUpnp) { +function confirmSelections(localAddress, callback) { + if (localAddress) { showAlertText({ title: globalize.translate('TitleHostingSettings'), text: globalize.translate('SettingsWarning') @@ -139,7 +137,6 @@ export default function (view) { const txtCertificatePath = page.querySelector('#txtCertificatePath'); txtCertificatePath.value = config.CertificatePath || ''; page.querySelector('#txtCertPassword').value = config.CertificatePassword || ''; - page.querySelector('#chkEnableUpnp').checked = config.EnableUPnP; triggerChange(page.querySelector('#chkRemoteAccess')); page.querySelector('#chkAutodiscovery').checked = config.AutoDiscovery; page.querySelector('#chkEnableIP6').checked = config.EnableIPv6; @@ -154,13 +151,11 @@ export default function (view) { view.querySelector('.fldExternalAddressFilterMode').classList.remove('hide'); view.querySelector('.fldPublicHttpPort').classList.remove('hide'); view.querySelector('.fldPublicHttpsPort').classList.remove('hide'); - view.querySelector('.fldEnableUpnp').classList.remove('hide'); } else { view.querySelector('.fldExternalAddressFilter').classList.add('hide'); view.querySelector('.fldExternalAddressFilterMode').classList.add('hide'); view.querySelector('.fldPublicHttpPort').classList.add('hide'); view.querySelector('.fldPublicHttpsPort').classList.add('hide'); - view.querySelector('.fldEnableUpnp').classList.add('hide'); } }); view.querySelector('#btnSelectCertPath').addEventListener('click', function () { diff --git a/src/controllers/wizard/remote/index.html b/src/controllers/wizard/remote/index.html index 05070e13c8c..542cc076866 100644 --- a/src/controllers/wizard/remote/index.html +++ b/src/controllers/wizard/remote/index.html @@ -11,13 +11,6 @@

${HeaderConfigureRemoteAccess}

${AllowRemoteAccessHelp}
-
- -
${LabelEnableAutomaticPortMapHelp}
-