diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-12-13 14:22:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-13 14:22:27 +0100 |
| commit | 8c00fbea9cbaca8db2950acd975a81a1d4ac7855 (patch) | |
| tree | 63841cd632e468fedd07437f5ffdaac4b78ef3f2 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | 4ecb30ef1036ccddd8eaf87c6cc2882b8db0054d (diff) | |
| parent | af37cc233945eaac64754d92a73060b206f4eee0 (diff) | |
Merge pull request #4675 from BaronGreenback/ProxyDNS
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index b256c869c..f0e37ff57 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; @@ -178,9 +179,9 @@ namespace Jellyfin.Server.Extensions { 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); } } } |
