Merge pull request #4544 from BaronGreenback/MinorFix

[Fix] Config option read from wrong place.
This commit is contained in:
Joshua M. Boniface 2020-11-22 13:49:26 -05:00 committed by GitHub
commit 8ec4dda9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ namespace Jellyfin.Server
mainApp.UseCors(); mainApp.UseCors();
if (_serverConfigurationManager.Configuration.RequireHttps if (_serverConfigurationManager.GetNetworkConfiguration().RequireHttps
&& _serverApplicationHost.ListenWithHttps) && _serverApplicationHost.ListenWithHttps)
{ {
mainApp.UseHttpsRedirection(); mainApp.UseHttpsRedirection();