mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #4675 from BaronGreenback/ProxyDNS
This commit is contained in:
commit
8c00fbea9c
1 changed files with 3 additions and 2 deletions
|
@ -24,6 +24,7 @@ using Jellyfin.Server.Configuration;
|
||||||
using Jellyfin.Server.Filters;
|
using Jellyfin.Server.Filters;
|
||||||
using Jellyfin.Server.Formatters;
|
using Jellyfin.Server.Formatters;
|
||||||
using MediaBrowser.Common.Json;
|
using MediaBrowser.Common.Json;
|
||||||
|
using MediaBrowser.Common.Net;
|
||||||
using MediaBrowser.Model.Entities;
|
using MediaBrowser.Model.Entities;
|
||||||
using Microsoft.AspNetCore.Authentication;
|
using Microsoft.AspNetCore.Authentication;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
@ -178,9 +179,9 @@ namespace Jellyfin.Server.Extensions
|
||||||
{
|
{
|
||||||
for (var i = 0; i < knownProxies.Count; i++)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue