Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: TestInterfaceHardwareAddrWithGetmac fails on Windows 10 when using virtual adapters #21027
My "Ethernet 2" adapter is not a real ethernet (I have none), it's a virtual adapter installed with some VPN. Its type is listed as [TAP-Windows Adapter V9[(https://www.iocreed.net/what-is-tap-windows-adapter-and-how-to-remove-it/), and it's apparently required to use OpenVPN.
The test is for function
The test creates the expected output by running
Note how two of the adapters have the same Physical Address.
Note how all physical addresses are unique.
Consistent with that,
The test skips the loopback interface.
In other words, net.Interfaces returns
Maybe someone familiar with Windows networking could clarify what
For reference, the actual adapters on my system (as shown in Windows control panel) are: