diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2022-10-17 15:38:42 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2022-10-17 15:51:09 +0200 |
| commit | f6d6f0367bf62435dfaf7d122415d31977f889aa (patch) | |
| tree | 8fa844fc8fcf69fe6e0bde87be652571dcf23737 /Jellyfin.Server/Extensions | |
| parent | 26d79a5ce3639700131d0359c60c096cd0fbb093 (diff) | |
Properly handle IPs with subnetmasks
Diffstat (limited to 'Jellyfin.Server/Extensions')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 2 |
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) { |
