mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Revert "Use System.Net.IPNetwork"
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
This commit is contained in:
@@ -279,9 +279,9 @@ namespace Jellyfin.Server.Extensions
|
||||
}
|
||||
else if (NetworkUtils.TryParseToSubnet(allowedProxies[i], out var subnet))
|
||||
{
|
||||
if (subnet.HasValue)
|
||||
if (subnet is not null)
|
||||
{
|
||||
AddIPAddress(config, options, subnet.Value.BaseAddress, subnet.Value.PrefixLength);
|
||||
AddIPAddress(config, options, subnet.Prefix, subnet.PrefixLength);
|
||||
}
|
||||
}
|
||||
else if (NetworkUtils.TryParseHost(allowedProxies[i], out var addresses, config.EnableIPv4, config.EnableIPv6))
|
||||
|
||||
Reference in New Issue
Block a user