Apply review suggestions

This commit is contained in:
Shadowghost
2022-10-14 10:25:57 +02:00
parent 7b90fcd053
commit 4aec41752f
5 changed files with 92 additions and 38 deletions

View File

@@ -348,9 +348,9 @@ namespace Jellyfin.Server.Extensions
{
AddIpAddress(config, options, addr, addr.AddressFamily == AddressFamily.InterNetwork ? 32 : 128);
}
else if (NetworkExtensions.TryParseSubnets(new[] { allowedProxies[i] }, out var subnets))
else if (NetworkExtensions.TryParseSubnet(allowedProxies[i], out var subnet))
{
foreach (var subnet in subnets)
if (subnet != null)
{
AddIpAddress(config, options, subnet.Prefix, subnet.PrefixLength);
}