mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-30 03:13:17 +01:00
update program queries
This commit is contained in:
@@ -966,19 +966,7 @@ namespace MediaBrowser.Server.Startup.Common
|
||||
/// </summary>
|
||||
protected override void FindParts()
|
||||
{
|
||||
var isAuthorized = ServerConfigurationManager.Configuration.IsPortAuthorized;
|
||||
if (isAuthorized)
|
||||
{
|
||||
try
|
||||
{
|
||||
isAuthorized = !NativeApp.PortsRequireAuthorization(ConfigurationManager.CommonApplicationPaths.ApplicationPath);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
if (!isAuthorized)
|
||||
if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
|
||||
{
|
||||
RegisterServerWithAdministratorAccess();
|
||||
ServerConfigurationManager.Configuration.IsPortAuthorized = true;
|
||||
|
||||
@@ -24,8 +24,6 @@ namespace MediaBrowser.Server.Startup.Common
|
||||
/// <param name="tempDirectory">The temporary directory.</param>
|
||||
void AuthorizeServer(int udpPort, int httpServerPort, int httpsServerPort, string applicationPath, string tempDirectory);
|
||||
|
||||
bool PortsRequireAuthorization(string applicationPath);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the environment.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user