aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordwandw <dwandw@gmail.com>2026-04-21 02:27:11 +0000
committerdwandw <dwandw@gmail.com>2026-04-27 07:13:27 +0000
commit9962fbbe2ed20a95dd1e9533fbc684070347f031 (patch)
tree8fe992fbab564ba5bf11ce16c754137fd6d94532 /tests
parent8b94722110f66766af3bf8ebd05414f011987ef0 (diff)
fix: IPv6 prefixes not recognized as proxy https://github.com/jellyfin/jellyfin/issues/15710
Diffstat (limited to 'tests')
-rw-r--r--tests/Jellyfin.Server.Tests/ParseNetworkTests.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/Jellyfin.Server.Tests/ParseNetworkTests.cs b/tests/Jellyfin.Server.Tests/ParseNetworkTests.cs
index 14f4c33b6b..e788f43b86 100644
--- a/tests/Jellyfin.Server.Tests/ParseNetworkTests.cs
+++ b/tests/Jellyfin.Server.Tests/ParseNetworkTests.cs
@@ -23,8 +23,8 @@ namespace Jellyfin.Server.Tests
true,
true,
new string[] { "192.168.t", "127.0.0.1", "::1", "1234.1232.12.1234" },
- new IPAddress[] { IPAddress.Loopback },
- new IPNetwork[] { new IPNetwork(IPAddress.IPv6Loopback, 128) });
+ new IPAddress[] { IPAddress.Loopback, IPAddress.IPv6Loopback },
+ Array.Empty<IPNetwork>());
data.Add(
true,
@@ -37,8 +37,8 @@ namespace Jellyfin.Server.Tests
true,
true,
new string[] { "::1" },
- Array.Empty<IPAddress>(),
- new IPNetwork[] { new IPNetwork(IPAddress.IPv6Loopback, 128) });
+ new IPAddress[] { IPAddress.IPv6Loopback },
+ Array.Empty<IPNetwork>());
data.Add(
false,
@@ -58,15 +58,15 @@ namespace Jellyfin.Server.Tests
false,
true,
new string[] { "localhost" },
- Array.Empty<IPAddress>(),
- new IPNetwork[] { new IPNetwork(IPAddress.IPv6Loopback, 128) });
+ new IPAddress[] { IPAddress.IPv6Loopback },
+ Array.Empty<IPNetwork>());
data.Add(
true,
true,
new string[] { "localhost" },
- new IPAddress[] { IPAddress.Loopback },
- new IPNetwork[] { new IPNetwork(IPAddress.IPv6Loopback, 128) });
+ new IPAddress[] { IPAddress.Loopback, IPAddress.IPv6Loopback },
+ Array.Empty<IPNetwork>());
return data;
}