aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2022-10-17 15:38:42 +0200
committerShadowghost <Ghost_of_Stone@web.de>2022-10-17 15:51:09 +0200
commitf6d6f0367bf62435dfaf7d122415d31977f889aa (patch)
tree8fa844fc8fcf69fe6e0bde87be652571dcf23737 /Jellyfin.Server/Extensions
parent26d79a5ce3639700131d0359c60c096cd0fbb093 (diff)
Properly handle IPs with subnetmasks
Diffstat (limited to 'Jellyfin.Server/Extensions')
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
index a1adddcbb..439147bfd 100644
--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
@@ -348,7 +348,7 @@ namespace Jellyfin.Server.Extensions
{
AddIpAddress(config, options, addr, addr.AddressFamily == AddressFamily.InterNetwork ? 32 : 128);
}
- else if (NetworkExtensions.TryParseSubnet(allowedProxies[i], out var subnet))
+ else if (NetworkExtensions.TryParseToSubnet(allowedProxies[i], out var subnet))
{
if (subnet != null)
{