mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 22:13:06 +03:00
Apply review suggestions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user