mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
[Fix] NetworkManager binding to [::] (#4549)
* Autodiscovery enable/disable patch * Fixed [::] issue on bind. Altered test. * Update UdpServerEntryPoint.cs * Update Jellyfin.Networking.Tests.csproj * Update Jellyfin.Networking.Tests.csproj * Update INetworkManager.cs
This commit is contained in:
@@ -135,6 +135,7 @@ namespace Jellyfin.Networking.Tests
|
||||
[InlineData("127.0.0.1#")]
|
||||
[InlineData("localhost!")]
|
||||
[InlineData("fd23:184f:2029:0:3139:7386:67d7:d517:1231")]
|
||||
[InlineData("[fd23:184f:2029:0:3139:7386:67d7:d517:1231]")]
|
||||
public void InvalidAddressString(string address)
|
||||
{
|
||||
Assert.False(TryParse(address, out _));
|
||||
@@ -157,7 +158,7 @@ namespace Jellyfin.Networking.Tests
|
||||
"[]",
|
||||
"[]",
|
||||
"[]")]
|
||||
[InlineData("[127.0.0.1]",
|
||||
[InlineData("!127.0.0.1",
|
||||
"[]",
|
||||
"[]",
|
||||
"[127.0.0.1/32]",
|
||||
@@ -169,18 +170,19 @@ namespace Jellyfin.Networking.Tests
|
||||
"[]",
|
||||
"[]",
|
||||
"[]")]
|
||||
[InlineData(
|
||||
"192.158.1.2/16, localhost, fd23:184f:2029:0:3139:7386:67d7:d517, !10.10.10.10",
|
||||
"[192.158.1.2/16,127.0.0.1/32,fd23:184f:2029:0:3139:7386:67d7:d517/128]",
|
||||
"[192.158.1.2/16,127.0.0.1/32]",
|
||||
"[10.10.10.10/32]",
|
||||
"[10.10.10.10/32]",
|
||||
"[192.158.0.0/16,127.0.0.1/32,fd23:184f:2029:0:3139:7386:67d7:d517/128]")]
|
||||
[InlineData("192.158.1.2/255.255.0.0,192.169.1.2/8",
|
||||
"[192.158.1.2/16,192.169.1.2/8]",
|
||||
"[192.158.1.2/16,192.169.1.2/8]",
|
||||
"[]",
|
||||
"[]",
|
||||
"[192.158.0.0/16,192.0.0.0/8]")]
|
||||
[InlineData("192.158.1.2/16, localhost, fd23:184f:2029:0:3139:7386:67d7:d517, [10.10.10.10]",
|
||||
"[192.158.1.2/16,127.0.0.1/32,fd23:184f:2029:0:3139:7386:67d7:d517/128]",
|
||||
"[192.158.1.2/16,127.0.0.1/32]",
|
||||
"[10.10.10.10/32]",
|
||||
"[10.10.10.10/32]",
|
||||
"[192.158.0.0/16,127.0.0.1/32,fd23:184f:2029:0:3139:7386:67d7:d517/128]")]
|
||||
public void TestCollections(string settings, string result1, string result2, string result3, string result4, string result5)
|
||||
{
|
||||
if (settings == null)
|
||||
|
||||
Reference in New Issue
Block a user