Skip to content

Commit

Permalink
Filter on Description rather than name to detect a Hyper-V Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlon committed Aug 4, 2024
1 parent 048abda commit 42f6b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/Services/WolService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public bool SendWol(string macAddress, string ipAddress = null)

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;
}
Expand Down

0 comments on commit 42f6b33

Please sign in to comment.