-
Notifications
You must be signed in to change notification settings - Fork 798
Filter virtual/filter network adapters by Name and Description in .NET 9/10 #3309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
|
@copilot what is with the |
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Added "WAN Miniport" and "Microsoft Wi-Fi Direct Virtual Adapter" to the filter list in commit ac3ac82. These virtual adapters (used for VPN/PPP connections and Wi-Fi Direct peer-to-peer) will now be filtered out along with the other virtual/filter adapters. Testing confirms all WAN Miniport variants (SSTP, IKEv2, L2TP, PPTP, IP, IPv6) and Wi-Fi Direct adapters are now filtered while legitimate network interfaces remain visible. |
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Changes proposed in this pull request
NameandDescriptionproperties against pattern listRelated issue(s)
Copilot generated summary
Copilot summary
.NET 9/10 changed
NetworkInterface.GetAllNetworkInterfaces()to expose virtual/filter adapters. These appear in two forms:"vEthernet (Default Switch)-WFP Native MAC Layer LightWeight Filter-0000""LAN-Verbindung* 1", Description="WAN Miniport (SSTP)"Previous implementation only checked
Name, missing adapters where patterns appear inDescription.Fix: Check both properties
Filter patterns (applied to both fields):
Impact: Filters all virtual/filter adapters regardless of whether pattern appears in Name or Description. Preserves legitimate interfaces (Ethernet, WLAN, Bluetooth).
Ref: dotnet/runtime#122751
To-Do
Contributing
By submitting this pull request, I confirm the following:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.