Filter on Description rather than name to detect a Hyper-V Interface

This commit is contained in:
Marlon committed 2024-08-04 20:17:27 +02:00
1 parent 048abda482
commit 42f6b3346c
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ public class WolService
private bool IsViableWOLInterface(NetworkInterface ni) {
return ni.NetworkInterfaceType != NetworkInterfaceType.Loopback
&& !ni.Name.Contains("Hyper-V")
&& !ni.Description.Contains("Hyper-V")
&& ni.SupportsMulticast
&& ni.GetIPProperties().GetIPv4Properties != null;
}