aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2020-11-22 11:40:50 +0000
committerGitHub <noreply@github.com>2020-11-22 11:40:50 +0000
commita34fca6f8e4ded6c36495f2937c80baee15e09c3 (patch)
treeb5dbe5cd16be778e27d19b61ca9bfd9b4d90062d
parenta57b99bffdf40067465a0dda920fab23ceda1451 (diff)
Update Startup.cs
-rw-r--r--Jellyfin.Server/Startup.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.cs
index a615e9aeb..8ddfdc1c8 100644
--- a/Jellyfin.Server/Startup.cs
+++ b/Jellyfin.Server/Startup.cs
@@ -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();