mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-01 12:44:25 -04:00
Remove workaround, this only applies to the IPs set by the middleware
This commit is contained in:
parent
34d8e531e0
commit
748907b920
@ -372,14 +372,6 @@ namespace Jellyfin.Server.Extensions
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// In order for dual-mode sockets to be used, IP6 has to be enabled in JF and an interface has to have an IP6 address.
|
|
||||||
if (addr.AddressFamily == AddressFamily.InterNetwork && config.EnableIPV6)
|
|
||||||
{
|
|
||||||
// If the server is using dual-mode sockets, IPv4 addresses are supplied in an IPv6 format.
|
|
||||||
// https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-5.0 .
|
|
||||||
addr = addr.MapToIPv6();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (prefixLength == 32)
|
if (prefixLength == 32)
|
||||||
{
|
{
|
||||||
options.KnownProxies.Add(addr);
|
options.KnownProxies.Add(addr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user