The Free Software Media System - Server Backend & API
Update ApiServiceCollectionExtensions.cs
BaronGreenback1a44d34f5083
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.csindex 74e7bb4b15..4995fe6a3f 100644--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs@@ -24,6 +24,7 @@ using Jellyfin.Server.Configuration;using Jellyfin.Server.Filters;using Jellyfin.Server.Formatters;using MediaBrowser.Common.Json;+using MediaBrowser.Common.Net;using MediaBrowser.Model.Entities;using Microsoft.AspNetCore.Authentication;using Microsoft.AspNetCore.Authorization;@@ -171,9 +172,9 @@ namespace Jellyfin.Server.Extensionsoptions.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;for (var i = 0; i < knownProxies.Count; i++){- if (IPAddress.TryParse(knownProxies[i], out var address))+ if (IPHost.TryParse(knownProxies[i], out var host)){- options.KnownProxies.Add(address);+ options.KnownProxies.Add(host.Address);}}})