From cf35d3a191d1a45c4815dfcd14a52ccc91cc6428 Mon Sep 17 00:00:00 2001 From: rewiendurga <18669561+rewiendurga@users.noreply.github.com> Date: Fri, 26 Aug 2022 18:10:47 +0200 Subject: [PATCH] Update NetworkInterface.cs --- Zeroconf/NetworkInterface.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zeroconf/NetworkInterface.cs b/Zeroconf/NetworkInterface.cs index a0697a0..8dcdc97 100644 --- a/Zeroconf/NetworkInterface.cs +++ b/Zeroconf/NetworkInterface.cs @@ -28,7 +28,8 @@ public async Task NetworkRequestAsync(byte[] requestBytes, // populate list with all adapters if none specified if(netInterfacesToSendRequestOn == null || !netInterfacesToSendRequestOn.Any()) { - netInterfacesToSendRequestOn = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces(); + netInterfacesToSendRequestOn = System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces() + .Where(inter => inter.Supports(NetworkInterfaceComponent.IPv4)); } var tasks = netInterfacesToSendRequestOn