aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2022-07-20 11:47:48 +0200
committerShadowghost <Ghost_of_Stone@web.de>2022-07-20 11:47:48 +0200
commita492082f4e015d6d38368c4ac05d39d236387214 (patch)
tree97852d6e845ee6b876a083a06a0cbd1f2f5a364c /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
parent2043a33f815d9a16aa819095e6310620ca4e72a2 (diff)
Apply review suggestions and fix build
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
index 507395106..a393b80db 100644
--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
@@ -372,6 +372,11 @@ namespace Jellyfin.Server.Extensions
return;
}
+ if (addr.IsIPv4MappedToIPv6)
+ {
+ addr = addr.MapToIPv4();
+ }
+
if (prefixLength == 32)
{
options.KnownProxies.Add(addr);