From 42f6b3346c4f7404e433a8193e951f0895d7cef2 Mon Sep 17 00:00:00 2001 From: Marlon Date: Sun, 4 Aug 2024 20:17:27 +0200 Subject: [PATCH] Filter on Description rather than name to detect a Hyper-V Interface --- Shared/Services/WolService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Services/WolService.cs b/Shared/Services/WolService.cs index 18870b1..2457086 100644 --- a/Shared/Services/WolService.cs +++ b/Shared/Services/WolService.cs @@ -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; }