aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2020-12-13 14:22:27 +0100
committerJoshua M. Boniface <joshua@boniface.me>2020-12-13 20:34:32 -0500
commit5fa8c83ba40bff1b6e1408039df0917bef50981e (patch)
treec22eb5612f97832cfa8ec7e048156d437142bc4f /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
parent683bc27b27e4966d92fe12cb8fb388073ed3d9e3 (diff)
Merge pull request #4675 from BaronGreenback/ProxyDNS
(cherry picked from commit 8c00fbea9cbaca8db2950acd975a81a1d4ac7855) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs5
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);
}
}
}