Update Startup.cs
This commit is contained in:
parent
a57b99bffd
commit
a34fca6f8e
|
@ -4,6 +4,7 @@ using Jellyfin.Networking.Configuration;
|
|||
using Jellyfin.Server.Extensions;
|
||||
using Jellyfin.Server.Implementations;
|
||||
using Jellyfin.Server.Middleware;
|
||||
using Jellyfin.Server.Networking;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Controller.Configuration;
|
||||
|
@ -122,7 +123,7 @@ namespace Jellyfin.Server
|
|||
|
||||
mainApp.UseCors();
|
||||
|
||||
if (_serverConfigurationManager.Configuration.RequireHttps
|
||||
if (_serverConfigurationManager.GetNetworkConfiguration().RequireHttps
|
||||
&& _serverApplicationHost.ListenWithHttps)
|
||||
{
|
||||
mainApp.UseHttpsRedirection();
|
||||
|
|
Loading…
Reference in New Issue
Block a user