aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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;
}