Skip to content

Commit a9ee319

Browse files
CopilotBornToBeRoot
andcommitted
Use inclusive terminology for filter patterns
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
1 parent 0f67bc8 commit a9ee319

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/NETworkManager.Models/Network/NetworkInterface.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public sealed class NetworkInterface
2626
#region Variables
2727

2828
/// <summary>
29-
/// Blacklist of network interface name patterns to filter out virtual/filter adapters
29+
/// List of network interface name patterns to filter out virtual/filter adapters
3030
/// introduced in .NET 9/10. These are typically not actual network interfaces but rather
3131
/// drivers, filters, or extensions attached to real network interfaces.
3232
/// See: https://github.com/dotnet/runtime/issues/122751
3333
/// </summary>
34-
private static readonly List<string> NetworkInterfacesBlacklist =
34+
private static readonly List<string> NetworkInterfaceFilteredPatterns =
3535
[
3636
"Hyper-V Virtual Switch Extension Filter",
3737
"WFP Native MAC Layer LightWeight Filter",
@@ -79,9 +79,9 @@ public static List<NetworkInterfaceInfo> GetNetworkInterfaces()
7979
continue;
8080

8181
// Filter out virtual/filter adapters introduced in .NET 9/10
82-
// Check if the adapter name contains any blacklisted pattern
82+
// Check if the adapter name contains any filtered pattern
8383
// See: https://github.com/dotnet/runtime/issues/122751
84-
if (NetworkInterfacesBlacklist.Any(pattern => networkInterface.Name.Contains(pattern)))
84+
if (NetworkInterfaceFilteredPatterns.Any(pattern => networkInterface.Name.Contains(pattern)))
8585
continue;
8686

8787
var listIPv4Address = new List<Tuple<IPAddress, IPAddress>>();

0 commit comments

Comments
 (0)