Remove the ability to auto port forward (#13222)

This commit is contained in:
Bond-009 2025-01-25 17:34:06 +01:00 committed by GitHub
parent cc284afb47
commit b318f33599
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 7 additions and 200 deletions

View file

@ -93,7 +93,6 @@ public class StartupController : BaseJellyfinApiController
{
NetworkConfiguration settings = _config.GetNetworkConfiguration();
settings.EnableRemoteAccess = startupRemoteAccessDto.EnableRemoteAccess;
settings.EnableUPnP = startupRemoteAccessDto.EnableAutomaticPortMapping;
_config.SaveConfiguration(NetworkConfigurationStore.StoreKey, settings);
return NoContent();
}

View file

@ -1,3 +1,4 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Jellyfin.Api.Models.StartupDtos;
@ -17,5 +18,6 @@ public class StartupRemoteAccessDto
/// Gets or sets a value indicating whether enable automatic port mapping.
/// </summary>
[Required]
[Obsolete("No longer supported")]
public bool EnableAutomaticPortMapping { get; set; }
}