Apply review suggestions and fix build

This commit is contained in:
Shadowghost
2022-07-20 11:47:48 +02:00
parent 2043a33f81
commit a492082f4e
4 changed files with 19 additions and 21 deletions

View File

@@ -372,6 +372,11 @@ namespace Jellyfin.Server.Extensions
return;
}
if (addr.IsIPv4MappedToIPv6)
{
addr = addr.MapToIPv4();
}
if (prefixLength == 32)
{
options.KnownProxies.Add(addr);