diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2022-07-20 11:47:48 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2022-07-20 11:47:48 +0200 |
| commit | a492082f4e015d6d38368c4ac05d39d236387214 (patch) | |
| tree | 97852d6e845ee6b876a083a06a0cbd1f2f5a364c /Jellyfin.Server/Extensions | |
| parent | 2043a33f815d9a16aa819095e6310620ca4e72a2 (diff) | |
Apply review suggestions and fix build
Diffstat (limited to 'Jellyfin.Server/Extensions')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 5 |
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); |
