diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-12-03 08:10:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-03 08:10:02 +0100 |
| commit | fdd8b34cc1e8eeadf17fd771f87173766b61bb0f (patch) | |
| tree | edc40293e5c4240d41864300d981855171e46103 /Jellyfin.Server | |
| parent | f01eff0559e775a3d4b5cd24f9bb82e862ebe99f (diff) | |
| parent | 6173534d333b3ab0b17b5bac928d50e8dd0c36a7 (diff) | |
Merge pull request #4636 from jellyfin/MissedOne
[Fix for 10.7] Missed a config move
Diffstat (limited to 'Jellyfin.Server')
| -rw-r--r-- | Jellyfin.Server/Startup.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.cs index f144dd12e..7f1d332ee 100644 --- a/Jellyfin.Server/Startup.cs +++ b/Jellyfin.Server/Startup.cs @@ -104,7 +104,8 @@ namespace Jellyfin.Server app.UseBaseUrlRedirection(); // Wrap rest of configuration so everything only listens on BaseUrl. - app.Map(_serverConfigurationManager.GetNetworkConfiguration().BaseUrl, mainApp => + var config = _serverConfigurationManager.GetNetworkConfiguration(); + app.Map(config.BaseUrl, mainApp => { if (env.IsDevelopment()) { @@ -122,8 +123,7 @@ namespace Jellyfin.Server mainApp.UseCors(); - if (_serverConfigurationManager.GetNetworkConfiguration().RequireHttps - && _serverApplicationHost.ListenWithHttps) + if (config.RequireHttps && _serverApplicationHost.ListenWithHttps) { mainApp.UseHttpsRedirection(); } |
