diff --git a/src/System.Net.Http/tests/FunctionalTests/TestHelper.cs b/src/System.Net.Http/tests/FunctionalTests/TestHelper.cs index bd07f0fc8b68..abd549fcc46d 100644 --- a/src/System.Net.Http/tests/FunctionalTests/TestHelper.cs +++ b/src/System.Net.Http/tests/FunctionalTests/TestHelper.cs @@ -110,7 +110,7 @@ public static Task WhenAllCompletedOrAnyFailedWithTimeout(int timeoutInMilliseco public static IPAddress GetIPv6LinkLocalAddress() => NetworkInterface .GetAllNetworkInterfaces() - .Where(i => i.Description != "PANGP Virtual Ethernet Adapter") // This is a VPN adapter, but is reported as a regular Ethernet interface with + .Where(i => !i.Description.StartsWith("PANGP Virtual Ethernet")) // This is a VPN adapter, but is reported as a regular Ethernet interface with // a valid link-local address, but the link-local address doesn't actually work. // So just manually filter it out. .SelectMany(i => i.GetIPProperties().UnicastAddresses)