aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2023-11-14 20:21:34 +0100
committerBond_009 <bond.009@outlook.com>2023-11-14 21:16:33 +0100
commit635d67d458e02df53a1b08998ccd3cff16e76ac3 (patch)
tree1bdeba7597d587fdfeaf058e9b321f40080a3c74 /Jellyfin.Server/Extensions
parent0fd36a5bf1fc87ebbfd5b74585f0c080995c1688 (diff)
Revert "Use System.Net.IPNetwork"
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
Diffstat (limited to 'Jellyfin.Server/Extensions')
-rw-r--r--Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
index 92c483c0f..46df173bf 100644
--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
@@ -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))