Update Startup.cs

pull/4544/head
BaronGreenback 4 years ago committed by GitHub
parent a57b99bffd
commit a34fca6f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save